Search found 4 matches

by MBA
Fri Aug 19, 2005 4:09 pm
Forum: Beginners Help
Topic: 100% CPU usage
Replies: 25
Views: 1222

To Murphy: I won't argue why you would put a sleep in your mainloop, but in some cases it can be a necessity and in some cases its just bullocks to do it. But splitting up the operations can be quite nice. For example I find it unacceptable to scan for user input with the same rate i refresh the scr...
by MBA
Thu Aug 18, 2005 2:32 pm
Forum: Beginners Help
Topic: 100% CPU usage
Replies: 25
Views: 1222

so let me get this straight usleep() works on both windows and linux? so it's good to use this instead? The unistd.h defines standard routines used in a unix environment, and it contains unix specific code. You probably wouldn't use it on a windows machine. "Do not #include <unistd.h> as it co...
by MBA
Thu Aug 18, 2005 11:07 am
Forum: Beginners Help
Topic: 100% CPU usage
Replies: 25
Views: 1222

hi just for completenes, the equivalent to the windows Sleep() on a *nix system is the usleep(). The sleep() defined in unistd.h has only seconds precision while the usleep() takes a msec argument. The highest precision is about 10 msec dependent on the granularity of the linux scheduler. When perf...
by MBA
Tue Jul 26, 2005 9:54 am
Forum: Bug reports
Topic: .3ds import bug?
Replies: 1
Views: 451

I had a similar problem with the 3ds format, exported from wings3d, couldn't get dynamics light to function proberly - it seems that every surface material had its emmissive color set to something different from zero, and therefore ligting up by itself. I solved this by setting node->getMaterial(0)....