Sign in to follow this  
Tiege

Frames Only Update When I Move Mouse?

Recommended Posts

I had this problem with a couple of the programs I made to learn about loading x files. I recreated the static and animated x file tutorials tiger.x and tiny.x. I noticed however the animation ONLY worked if I moved my mouse or hit some keys. I have to keep moving my mouse or hit keys on the keyboard to make the animations continue. What's causing this?

Share this post


Link to post
Share on other sites
[quote name='Tiege' timestamp='1313964478' post='4852026']
I had this problem with a couple of the programs I made to learn about loading x files. I recreated the static and animated x file tutorials tiger.x and tiny.x. I noticed however the animation ONLY worked if I moved my mouse or hit some keys. I have to keep moving my mouse or hit keys on the keyboard to make the animations continue. What's causing this?
[/quote]
GetMessage is causing this. If there are no messages, it blocks. Use PeekMessage instead.

Share this post


Link to post
Share on other sites
Thanks bunches :)
[quote name='samoth' timestamp='1313964685' post='4852027']
[quote name='Tiege' timestamp='1313964478' post='4852026']
I had this problem with a couple of the programs I made to learn about loading x files. I recreated the static and animated x file tutorials tiger.x and tiny.x. I noticed however the animation ONLY worked if I moved my mouse or hit some keys. I have to keep moving my mouse or hit keys on the keyboard to make the animations continue. What's causing this?
[/quote]
GetMessage is causing this. If there are no messages, it blocks. Use PeekMessage instead.
[/quote]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this