Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Ogre + Wii controller delay problem

Started 1 month, 3 weeks ago by Lax
Hello people, I've an problem by using the wii controller in ogre. I'm using the poll() function of the wiiuse library in the frameStarted(...) function of the FrameListener. The problem is, when I start the game and do some interaction with the wii, like pressing buttons to move the player, then I get delayed reaction. I press the forward button and after a time, the player begins to move etc. ...
Site: Ogre Forums  Ogre Forums - site profile
Forum: Help  Help - forum profile
Total authors: 4 authors
Total thread posts: 11 posts
Thread activity: no new posts during last week
Domain info for: ogre3d.org

Other posts in this thread:

tuan kuranes replied 1 month, 3 weeks ago
Here's a must read on the subject: http://www.gamasutra.com/view/feature/1 ... veness.php

Lax replied 1 month, 3 weeks ago
Thanks a lot for the nice article. I see now, the an gameloop is an complex process. I have reconsidered the concept of the gameloop and removed the FrameListener. I build an own while loop and and told in which I say: Inputs, gamelogic, etc. needs to be updated only 25 times per second. The Physicsengine, to run stable, needs to be updated constantly by 60 fps, and the scenerendering needs ...

FragCool replied 1 month, 3 weeks ago
Do you consider the time since the last frame in your movement? E.g. When your application run at 100fps, your movement must be only 1/100 of the length that you would use when your app would run with 1 fps. The best is to use the time since the last frame. Take a look at the Intermediat Tuturial 1, there you have an example

PhilipLB replied 1 month, 3 weeks ago
Just as a quick explanation why it lagged: The WiiMote must be pulled with 100fps. Otherwise it will store the data in a queue. That's why you got lags if your FPS went below 100.

Lax replied 1 month, 2 weeks ago
Do you consider the time since the last frame in your movement? Yes, but It's complicated. I'm updating the the game 60 times per second and the graphics with no limit. When I caluculate the timeSinceLastFrame (1/60) and move the character then the game is bucking a little bit. I don't know how to smooth the timeSinceLastFrame factor. Just as a quick explanation why it lagged: Thanks I ...

Lax replied 1 month, 2 weeks ago
The WiiMote must be pulled with 100fps. Otherwise it will store the data in a queue. That's why you got lags if your FPS went below 100. You were right. When I updated the poll() function with only 25fps only the controller worked, when I increased the updaterate to 100fps both worked, the controller and the nunchuk. But the new problem is: when vsync is on, then the delay is back. I'm ...

FragCool replied 1 month, 2 weeks ago
Multithreading Your FPS is capped at 60 FPS (VSYNC on an TFT) but you can pull the info from the wiimote still 100 times per second if you use a own thread

Lax replied 1 month, 2 weeks ago
Wow thanks, thats an great idea, I'll try it soon.

Lax replied 1 month, 2 weeks ago
Thank you very much FragCool for the good idea. I builded a thread and run the poll() function parallel to the gameloop with 100fps. When I set vysnc on. The game is updated with 60fps and there is no delay in the wii-inputs, therefore it seems to work!

FragCool replied 1 month, 2 weeks ago
Wuhu my first real contribution to the ogre community

 

Top contributing authors

Name
Posts
Lax
6
user's latest post:
Ogre + Wii controller delay problem
Published (2009-11-13 18:50:00)
Thank you very much FragCool for the good idea. I builded a thread and run the poll() function parallel to the gameloop with 100fps. When I set vysnc on. The game is updated with 60fps and there is no delay in the wii-inputs, therefore it seems to work!
FragCool
3
user's latest post:
Ogre + Wii controller delay problem
Published (2009-11-14 00:51:00)
Wuhu my first real contribution to the ogre community
tuan kuranes
1
user's latest post:
Ogre + Wii controller delay problem
Published (2009-11-05 11:54:00)
Here's a must read on the subject: http://www.gamasutra.com/view/feature/1 ... veness.php
PhilipLB
1
user's latest post:
Ogre + Wii controller delay problem
Published (2009-11-06 11:02:00)
Just as a quick explanation why it lagged: The WiiMote must be pulled with 100fps. Otherwise it will store the data in a queue. That's why you got lags if your FPS went below 100.

Related threads on "Ogre Forums":

Related threads on other sites:

Thread profile page for "Ogre + Wii controller delay problem" on http://www.ogre3d.org. This report page is a snippet summary view from a single thread "Ogre + Wii controller delay problem", located on the Message Board at http://www.ogre3d.org. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity