Drawing off-screen and vsync?

Previous topic - Next topic

doimus

Does GLB draw stuff that's not on screen? Stuff that's not visible to camera etc?
Is this taken care of automatically, or do we have to deal with it manually?

I did some tests with 200 512x512px PNG "sprites" (mighty huge),all drawn at each frame. While the memory usage was ridiculously high, GLB drew it almost flawlessly.
I am wandering if I could leave it this way, or should I optimize it so it will draw only what's visible on screen?

There was some problems when I tried to load jpg images instead of PNG. It loaded first few images and then drew the rest in black, ie. didn't load them. Changed to png, all went fine.

Also, is there a way to force vsync/antialiasing and that stuff in GLB code? There is some tearing visible when scrolling huge images and enabling vsync in video card properties fixes it.

ynbniar

My understanding is that drawing off screen is OK though I'm not sure exactly how it works...

http://www.glbasic.com/forum/index.php?topic=3742.0


Kitty Hello

I don't change the vsync option of your card. You set it to what you desire.