Search found 3 matches

by cheesethulhu
Sun Aug 24, 2008 8:04 pm
Forum: DS/DSi Development
Topic: Calculating 1ms with timers
Replies: 1
Views: 5333

Re: Calculating 1ms with timers

The argument to TIMER_FREQ() is frequency in Hz (events per second). You gave it the period in milliseconds. In order to calculate frequency in Hz, you need to take the reciprocal of the period in seconds. 1 second period = 1 millisecond * ---------------- = 0.001 seconds 1000 millisecond 1 ...
by cheesethulhu
Thu Jul 10, 2008 11:11 pm
Forum: Bug Reports
Topic: glInit must be called once per translation unit (module)!
Replies: 3
Views: 6938

Re: Inexplicable texturing problem (with test case!)

I don't know if this is actually a bug or just a design decision I don't understand. Either way, I recently ran into the same problem (without PAlib). videoGL.h creates a static pointer to some GL related data in each source file it gets included in. If glInit() does not get called from each source ...
by cheesethulhu
Thu Jul 03, 2008 2:29 am
Forum: libfat
Topic: libfat-nds-20070127 binary incompatible with devkitARM r23b
Replies: 0
Views: 4628

libfat-nds-20070127 binary incompatible with devkitARM r23b

libfat-nds-20070127 was built with 32-bit dev_t, but devkitARM r23b has 16-bit dev_t, so stat() places data in the wrong locations within struct stat and zeroes the first 4 bytes after the struct stat.