Jump to content
  • Advertisement
Sign in to follow this  

OpenGL 2 Open GL questions

This topic is 3629 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have two totally unrelated questions. Hopefully the people around here can shed some light on one or both. 1) We are using Rectangle and Non-Power-of-2 extensions, and using PBOs as well. When using this particular combination, it seems that some cards (ATI X1300 is what I am using, I've seen it on some nvidia 9000 series as well) will only handle certain memory alignments. i.e. nvidia cards seem to be OK with 16-bit alignment, but ATI seems to want 32-bit alignment. The end result is that right now I must assume 32-bit alignment always or the texture will be distorted with what looks like stride issues. I have tried to set GL_UNPACK_ALIGNMENT, but it simply seems to be ignored. I have also tried to find a way to determine if the memory buffer size has been adjusted from what I requested, but that too is no help, it always reports the size I asked for. Is there some way to set alignment, or at least reliably determine if the buffer has been adjusted for alignment after creating the texture. Right now my only alternative is to assume that everything is always aligned to 32-bit. As a last resort, is 32-bit alignment always a safe assumption or are there cases where it may not work? 2) Vsync. I can't seem to get any. I call glSwapBuffers() and it tears, badly. On high motion it appears like there is no effort made to sync at all. I checked the driver settings to make sure Vsync was not disabled or anything, and I do not think I am making any calls which should be disabling Vsync. isn't Vsync in OpenGL the default? I was always under the impression that unless it was overriden, SwapBuffers would always wait on Vysnc before ever doing an actual on-screen swap.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!