Skip to main content
gamedev.net
🔒 Locked

Visibility

Started by AdamGL May 25, 2006 at 7:02 PM 1 replies 700+ views
Original Post
AdamGL
AdamGL
Ok, I am starting a 2D sidescroller project in C++ and OpenGL. In any normal game using a low end graphics api, I would normally not draw anything that wasn't on the screen. However, I see that OpenGL has some functions that do that too. I was wondering whether it was worth it to cut off the parts not shown on my own? Or should I let OpenGL do it. The answer should be based on performance, because I want a high fps for a 2d game. And if I let OpenGL do it, how? Thank you in advance!
bi-FreeSoftware
Kaezin
Kaezin
Listen to zedzeek. While OpenGL won't draw anything not on the screen, it still requires an API call which can cumulatively get expensive, especially if the calls are essentially being ignored anyway.
Half the people you know are below average.Trogdor the Burninator

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.