The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
VERY slow SDL_SetColors() changes when using bittorrent
Matt Klein
Guest

Win32

I was trying to fix a bad bug related to SDL in Gordon's Duke Nukem 3D port.
It's an amazing bug that makes a *terrible* lag in the SDL_SetColors() when some
other applications are running at the same time.

EG: One of the application slowing down SDL_SetColors() is Bittorent when
downloading. I guess this is something related to the progess bar of Bittorrent.
If Bittorrent doesn't download then SDL_SetColors() will be fast.

SDL_SetColors() is slowed by approximately 50 to 100 times.

This bug is only noticable when: some app are running (like bittorent) *and*
when doing loops on the SDL_SetColors() to create fading effects. You won't see
the lag by issuing only 1 instance of SDL_SetColors() of course.


Any idea?


Regards,

--
mk
VERY slow SDL_SetColors() changes when using bittorrent
Josh Matthews
Guest

It's also possible that Bittorrent is taking up a lot of CPU time, which
would lag other things running.

On 1/14/06, Matt Klein <sdl at m-klein.com> wrote:
Quote:

Win32

I was trying to fix a bad bug related to SDL in Gordon's Duke Nukem 3D
port.
It's an amazing bug that makes a *terrible* lag in the SDL_SetColors()
when some
other applications are running at the same time.

EG: One of the application slowing down SDL_SetColors() is Bittorent when
downloading. I guess this is something related to the progess bar of
Bittorrent.
If Bittorrent doesn't download then SDL_SetColors() will be fast.

SDL_SetColors() is slowed by approximately 50 to 100 times.

This bug is only noticable when: some app are running (like bittorent)
*and*
when doing loops on the SDL_SetColors() to create fading effects. You
won't see
the lag by issuing only 1 instance of SDL_SetColors() of course.


Any idea?


Regards,

--
mk


_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl




--
Cheers,
Josh

PGP: http://revvy.box43.net/Josh_Matthews.asc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060114/8441bbdf/attachment.htm