Post Reply 
 
Thread Rating:
  • 41 Votes - 3.22 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SDL system10frames improvement
Author Message
Tantric Offline
Junior Member
**

Posts: 17
Joined: Oct 2008
Reputation: 0
Post: #1
SDL system10frames improvement
So I've been working on the Wii VBA port for a few revisions now, and I've been using the SDL system10frames as template. Well, it sucks. Frames either overskip or underskip, so there's speedups and slowdowns in gameplay and sound. Not an issue I'm sure with a new desktop computer, but for something with less horsepower, it's no good!

I've written my own little system10frames, with a usleep to handle timing. It's incredibly basic, but it eliminated the problems I was having completely. Perhaps you guys can improve it further (or suggest further improvements to me), I know I'll be playing with it some more. Source code on Google Code.
10-17-2008 08:14 AM
Find all posts by this user Quote this message in a reply
KunaiTeam Offline
Member
***

Posts: 50
Joined: Aug 2008
Reputation: 0
Post: #2
RE: SDL system10frames improvement
I haven't actually looked at the code, so I won't comment on that, but usleep, while available on the Wii, is not available on some systems. Since this is an SDL port, we might want to use SDL_Delay instead.
10-17-2008 09:35 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: