[GD-Windows] FYI Win9x and threads
Brought to you by:
vexxed72
From: Erwin de V. <er...@vo...> - 2002-05-05 11:34:22
|
Hi, Just a quick FYI. On our soundengine we implemented asynchronous file loading recently. It starts a new thread to load the sound from disk. On Win98 the creation of threads is SLOW. It really takes several ms on a 1ghz machine causing a nice stutter in our game. We noticed it here in the office on a 98 machine, but i suspect 95 and ME also to suffer from this issue. XP doesnt, so i guess 2k also doesnt. We worked around it by creating a threadpool and let them wait for a win32 event, and signal the event as soon as one of them needs to do something. Works like a champ, but it keeps me wondering.. Its really a shame this is so slow in win9x. Erwin |