🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
rotations slower when maximized
I'm totally new to OpenGL, and even though I'm only on lesson 5 right now, I have a question concerning the speed of polygon rotation. When I run the lesson 4 program in window mode and maximize it, the polygons seem to rotate at a slower speed. Why is this? Is there a way to fix it?
I believe it is because of the way the rotation variable is updated. Normally, you would update the variable based on a timer; that is x rotations per second. In this case, the update is based on the current frame rate (how fast the main while loop repeates itself). When you maxamize the program, it has more to draw so each repetition of the main while loop takes longer and the rotation seems slower.
Keep reading. It will take a while, but NeHe starts into timers on Lesson 21 (I think).
Cheers,
- llvllatrix
Keep reading. It will take a while, but NeHe starts into timers on Lesson 21 (I think).
Cheers,
- llvllatrix
Quote: Original post by llvllatrix
Keep reading. It will take a while, but NeHe starts into timers on Lesson 21 (I think).
Since some restructuring is underway, maybe this should be ported in lesson 2.
Quote: Original post by KrohmConsidering there isn't any animation in the first three tutorials I'd suggest that perhaps lesson #4 would be a better place to introduce it. I think putting it in the earlier tutorials would just be adding additional compexity with no visible result to the user.Quote: Original post by llvllatrixSince some restructuring is underway, maybe this should be ported in lesson 2.
Keep reading. It will take a while, but NeHe starts into timers on Lesson 21 (I think).
We'll just have to wait and see what the team doing the updates comes up with though, I'm sure they'll work out some good improvements.
Quote: Original post by KazgorothQuote: Original post by KrohmConsidering there isn't any animation in the first three tutorials I'd suggest that perhaps lesson #4 would be a better place to introduce it. I think putting it in the earlier tutorials would just be adding additional compexity with no visible result to the user.Quote: Original post by llvllatrixSince some restructuring is underway, maybe this should be ported in lesson 2.
Keep reading. It will take a while, but NeHe starts into timers on Lesson 21 (I think).
We'll just have to wait and see what the team doing the updates comes up with though, I'm sure they'll work out some good improvements.
Well as it looks now the tutorials will be based on a single stabile platform, and it would be a mistake not to include the basic tools (delta time) for animation there, so in theory you could introduce animation from the start.
I agree with lc_overlord, the timer should be introduced in the first lesson even if it is not used immediately, and then explained in greater detail later.
Luke.
Luke.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement