you may want to try and see if it is really the 

SDL_GetTicks command that is messed up.  If it is working properly, it should return 
the number of milliseconds since SDL got initialized...

try sprinkling some:

printf("current time is %dms\n", SDL_GetTicks());

and see if it goes up or if it is always 0 or another constant...

Maybe Uint32 isn't being set to a 32 bit unsigned integer, thus problems are happening 
....  (Uint was mistyped as a CHAR, this would be a HUGE problem, as it would roll 
over every 255 ms!)

maybe try printf("Size of Uint32 = %d\n", sizeof(Uint32));

Jesse

-----Original Message-----
From: "Jeremy C. Reed" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Fri, 30 May 2003 18:41:43 -0700 (PDT)
Subject: Re: [Tuxtype-dev] running on NetBSD just hangs

Thanks to J. Andrews' suggestions, I am beginning to track this down some
more. It was hanging before the "Tux and Title are in place now" message.

I added in some debugging and saw it was hanging at any SDL_Delay() call.
(This corresponds with my earlier ktrace showing the repeated
gettimeofday.)

So I commented them all out in titlescreen.c. The sound worked, but the
interface locked up when I started playing the comet zap section.

So then I made a macro in globals.h to ignore SDL_Delay:
#define SDL_Delay( n ) ;

Then I could play a game! It was fun (but may be hard for my son since
letters overlap and he probably can't guess what it should be).

But with the SDL_Delay removed, then the sound stopped working.

The strange thing is that SDL_Delay works fine in tuxmath and defendguin.

Something to initialize it or use it is done wrong.

This packaged tuxtype2 is using some dependencies (from NetBSD packages):
 SDL-1.2.5nb4
 SDL_image-1.2.2nb1
 SDL_mixer-1.2.5
 SDL_ttf-2.0.3nb2
 pth-2.0.0
(and several others)

I am building SDL test tools now to test SDL_Delay.

Thank you, Jesse, for your assistance.

   Jeremy C. Reed
   http://www.isp-faq.com/



_______________________________________________
Tuxtype-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxtype-dev



_______________________________________________
Tuxtype-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxtype-dev

Reply via email to