Re: [Tuxnes-devel] Smoother scrolling
Brought to you by:
tmmm
|
From: Mike M. <che...@ya...> - 2004-01-21 00:32:42
|
--- Jason Dorje Short <jd...@us...> wrote:
> I think this update needs to come *after* the usleep.
>
> if (frame > 1800) {
> frame = 0;
> renderer_data.basetime.tv_sec = now.tv_sec;
> renderer_data.basetime.tv_usec = now.tv_usec + usec.
> }
>
> The time "now" is not significant. The correct time is the time we're
> usleeping to, which is the time of the start of the current frame (frame 0).
>
Ohh, so that's what thay where doing with the other gettime. I think what you have here is ok.
I'l commit this somtime, I wana think about it some more.
> Otherwise it'll consistently be off by 1/100 of a second every 30
> seconds :-).
>
> The next step is probably making it possible to change
> doublespeed/halfspeed while the game is running. This shouldn't be too
> hard: when the values are changed reset the frame to 0 and start
> counting anew.
>
I forget where you can trap keypresses, there is a select statement some-where. Reserve a key for
saving state, I started a branch for it and it's quite close to being testable.
Things I'm looking fore are docs on nesticle.sta and that other nes file format. The docs I have
on sta are not fully complete and I would like to include a copy of the rom in the image(for
game-genie). There is some open nes format but the docs just baffeld me. it seamed to be packet
based but no real docs just blerb ware.
> jason
>
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
|