I've been noticing planes vanishing for a while now; I've only just realised that its when they fly over tunnel entrances and bridges:
It makes the plane stay invisible until it changes direction (especially see the lowest plane in the video).
Here is a patch. It is quite a hack. Should I submit this?
You are the expert. When I last touched that code, the image was simply set to empty for a vehicle in a tunnel.
Maybe I can try to solve this: http://forum.simutrans.com/index.php?topic=15036.msg148285#msg148285 (http://forum.simutrans.com/index.php?topic=15036.msg148285#msg148285) ;)
Isn't almost the entirety of the rendering code now a 'hack' of special cases trying to minimize the artifacts. ;D Whatever works...
Would the save_cr and toggle function not make more sense in simgraph along with the rest of the clipping stuff?
For multithreaded performance, save_cr needs padding to get any writes by different threads off the same cacheline. Same as was done with the clips[] struct.
Thanks for the comment. I put this into simgraph. The airplane bugs should be fixed in r8070. I tried to cleanup the code and the macro definitions.