rprince
Joined: 22 May 2007 Posts: 1
Digg It |
Posted: Tue May 22, 2007 4:24 pm Post subject: How often to update? |
|
|
I am hoping to use the cWiimote library for a game written in C, and am wondering how often the .HeartBeat() function needs to be called?
Will calling it every game loop suffice (which will then essentially tie to the frame rate), or does it have to be infinitely looping in a thread? If it has to be in a thread, how should I avoid problems of accessing the data structure from both the main game thread and the .HeartBeat() thread?
Thanks for any input you can give me!
Cheers,
Rikki |
|