• Advertisement
Sign in to follow this  

rotations slower when maximized

This topic is 4335 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

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?

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


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

  • Advertisement