Scissor Speed
Posted: Sat Mar 16, 2013 5:58 pm
Hey there,
so i'm drawing a level on the screen, basically just a set of tiles (which each are 16x16px)
But the level is likely to exceed the space on the screen, thus i'm wondering if its enough to set a scissor of the full window size (or is that unneeded/the default) to not waste time trying to draw tiles that aren't on the screen anyway; or if it would performance-wise be better to calculate which tiles are actually on the screen and only draw those anyway.
so i'm drawing a level on the screen, basically just a set of tiles (which each are 16x16px)
But the level is likely to exceed the space on the screen, thus i'm wondering if its enough to set a scissor of the full window size (or is that unneeded/the default) to not waste time trying to draw tiles that aren't on the screen anyway; or if it would performance-wise be better to calculate which tiles are actually on the screen and only draw those anyway.