#nuvie@irc.freenode.net logs for 15 Mar 2012 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[07:09:10] --> Yuv422 has joined #nuvie
[09:11:51] <-- Yuv422 has left IRC (Quit: Yuv422)
[11:04:49] --> Yuv422 has joined #nuvie
[11:16:43] <Yuv422> strange, I don't get any lag when watching the intro sequence
[11:16:53] <Yuv422> I was moving my mouse all over the window
[11:16:58] <wjp> hi Eric
[11:17:16] <Yuv422> hey Willem
[11:17:23] <wjp> it was so bad here that I couldn't figure out at first how to control the selected menu entry :-)
[11:17:35] <Yuv422> it makes sense though
[11:17:39] <wjp> I had first tried to do it with the mouse since the cursor was visible by moving the mouse, and clicking randomly
[11:17:48] <wjp> then I tried the arrows, but they didn't seem to do anything
[11:17:50] <Yuv422> if I'm only taking one event off the queue at a time
[11:17:55] <wjp> until 5 seconds later :-)
[11:18:31] <Yuv422> I might try a while loop until I get a keypress
[11:18:42] <Yuv422> or run out of events
[11:18:54] <wjp> that's what the s/if/while/ would do
[11:19:09] <wjp> that seems to work fine here for the menu
[11:19:16] <Yuv422> yeah
[11:19:33] <wjp> but I haven't looked at the impact (if any) on other things
[11:19:40] <Yuv422> I wonder what's happening differently on the mac
[11:19:50] <Yuv422> it shouldn't have any impact
[11:19:53] <wjp> maybe it combines mousemotion events differently
[11:20:03] <Yuv422> yeah
[11:20:40] <Yuv422> I can't remember having problems with the win32 build either
[11:21:22] <Yuv422> I've got to fix that loop timing too
[11:22:02] <wjp> the jitter is very annoying once I realized it's there :-)
[11:22:29] <wjp> one of those things you can't un-see :-)
[11:23:04] <Yuv422> hehe
[12:10:14] <Yuv422> inline Uint32 Event::TimeLeft()
[12:10:15] <Yuv422> {
[12:10:15] <Yuv422> static Uint32 next_time = 0;
[12:10:16] <Yuv422> Uint32 now;
[12:10:16] <Yuv422> now = clock->get_ticks();
[12:10:16] <Yuv422> if ( next_time <= now ) {
[12:10:16] <Yuv422> next_time = now+NUVIE_INTERVAL;
[12:10:17] <Yuv422> return(0);
[12:10:17] <Yuv422> }
[12:10:17] <Yuv422> Uint32 delay = next_time-now;
[12:10:18] <Yuv422> next_time += NUVIE_INTERVAL;
[12:10:18] <Yuv422> return(delay);
[12:10:18] <Yuv422> }
[12:24:09] <Yuv422> fixing that delay logic has thrown out all my intro timings
[12:27:25] <-- Kirben has left IRC ()
[12:34:16] <wjp> is TimeLeft being called during the intro? It's not hitting any of the debug printf's I had put in there
[12:37:04] <Yuv422> ah no that's a separate function
[12:37:05] <Yuv422> void ScriptCutscene::wait()
[12:37:47] <Yuv422> void ScriptCutscene::wait()
[12:37:48] <Yuv422> {
[12:37:48] <Yuv422> uint32 now = SDL_GetTicks();
[12:37:49] <Yuv422> if ( next_time <= now ) {
[12:37:49] <Yuv422> next_time = now+loop_interval;
[12:37:49] <Yuv422> return;
[12:37:50] <Yuv422> }
[12:37:50] <Yuv422> uint32 delay = next_time-now;
[12:37:50] <Yuv422> next_time += loop_interval;
[12:37:51] <Yuv422> SDL_Delay(delay);
[12:37:51] <Yuv422> }
[13:19:54] <Yuv422> I'm off to bed now
[13:19:55] <Yuv422> cya
[13:19:59] <-- Yuv422 has left IRC (Quit: Yuv422)
[17:25:22] --> Dominus has joined #nuvie
[20:19:46] --> Yuv422 has joined #nuvie
[21:10:45] <CIA-23> nuvie: 03efry * r1303 10/nuvie/trunk/ (ChangeLog Event.cpp Party.cpp script/ScriptCutscene.cpp):
[21:10:45] <CIA-23> nuvie: * Fixed wait loop logic. Thanks to wjp for the suggestion. It should
[21:10:45] <CIA-23> nuvie: be smoother now.
[21:10:45] <CIA-23> nuvie: * Fixed input polling in the cutscenes. Not consuming all available events
[21:10:45] <CIA-23> nuvie: was causing extreme slowdown on Linux.
[21:10:46] <CIA-23> nuvie: * Fixed bug when party member dies in fullmap mode.
[21:33:58] <-- Yuv422 has left IRC (Quit: Yuv422)
[23:35:44] --> Kirben has joined #nuvie