RE: [GD-General] responsive threading
Brought to you by:
vexxed72
From: Mat N. \(BUNGIE\) <mat...@mi...> - 2005-07-29 22:33:19
|
Unfortunately, there are many function calls that can cause stalls under multithreading: mixing blocking and non-blocking file i/o, allocating memory with malloc/free, CRT functions that manipulate global state, etc. MSN -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Andras Balogh Sent: Friday, July 29, 2005 3:07 PM To: gam...@li... Subject: Re: [GD-General] responsive threading I understand that, and I am thankful for your suggestions, but the=20 problem is that I don't really know what's going on in this=20 decompression library myself.. I was just assuming that whatever it=20 does, there is a way to make it not disturb my main thread. Andras Mat Noguchi (BUNGIE) wrote: > Without knowing exactly what you are doing on both threads, it is very > hard to determine the source of framerate spikes that are caused by > multithreading. >=20 > MSN > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...] On Behalf Of > Andras Balogh > Sent: Friday, July 29, 2005 2:34 PM > To: gam...@li... > Subject: Re: [GD-General] responsive threading >=20 > Even if this was the case, it would hurt overall performance, no?=20 > Overall performance is very good, I just don't like the occasional > spikes... >=20 >=20 > Mat Noguchi (BUNGIE) wrote: >=20 >>If you are both reading and decompressing on the IO thread, you are >>likely causing a lot of context switches if you have not modified the >>priority on either thread. >> >>MSN >=20 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. = http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick _______________________________________________ Gamedevlists-general mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D557 |