Occlusion and performance
Posted: 17 Feb 2015, 07:27
What is best regarding performance when implementing a scrolling bar which is mostly occluded by a mask (layer)?
See the speed tape on the left, an altitude tape on the right, and a compass rose on the bottom:

Animated in this video:
https://www.youtube.com/watch?v=ECV3IBkzZLc
If I make one huge bar with numbers and dashes, will it render the whole thing, even though most of it is occluded? I can make the bar much shorter and then reset the position at appropriate intervals to create the illusion of continuous movement. This would require re-using text boxes and changing the numbers, but it is achievable. Just more work.
Another related question:
Can all the dashes be batched into a single draw call?
See the speed tape on the left, an altitude tape on the right, and a compass rose on the bottom:
Animated in this video:
https://www.youtube.com/watch?v=ECV3IBkzZLc
If I make one huge bar with numbers and dashes, will it render the whole thing, even though most of it is occluded? I can make the bar much shorter and then reset the position at appropriate intervals to create the illusion of continuous movement. This would require re-using text boxes and changing the numbers, but it is achievable. Just more work.
Another related question:
Can all the dashes be batched into a single draw call?