SDL system10frames improvement

Post Reply
Tantric
Junior Member
Posts: 17
Joined: Sat Oct 04, 2008 3:12 pm

SDL system10frames improvement

Post by Tantric »

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.

KunaiTeam
Junior Member
Posts: 44
Joined: Thu Aug 14, 2008 9:37 pm

SDL system10frames improvement

Post by KunaiTeam »

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.

Post Reply