Skip to main content
GameDev.net gamedev.net
🔒 Locked

rotations slower when maximized

Started by Hanatarou May 29, 2006 at 12:10 PM 6 replies 3.2k views
Original Post
Hanatarou
Hanatarou
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?
llvllatrix
llvllatrix
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
Hanatarou
Hanatarou
Yeah, that makes sense. I might skim Lesson 21 a little. Thanks for the advice!
Krohm
Krohm
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.
Previously "Krohm"
jbadams
jbadams
Quote:
Original post by Krohm
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.
Considering 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.

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.
- Jason Astle-Adams
lc_overlord
lc_overlord
Quote:
Original post by Kazgoroth
Quote:
Original post by Krohm
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.
Considering 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.

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.

Kazade
Kazade
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.
Member of the NeHe team.

Topic Locked

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

Sign in to reply to this topic.