We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 620 - setting the palette causes 200% slowdown on future drawing.
Summary: setting the palette causes 200% slowdown on future drawing.
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 1.2.12
Hardware: x86 Windows (95/98/ME)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-1.2.14
Depends on:
Blocks:
 
Reported: 2008-09-01 22:24 UTC by punkass
Modified: 2009-09-21 03:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description punkass 2008-09-01 22:24:41 UTC
when using 8-bit colour mode and setting a custom palette using:
  SDL_SetPalette(screen, SDL_PHYSPAL, colours, 0, 256);
the framerate of program drops from 60fps to 20fps.

this was compiled using vc++6 on windows 98.  i tried setting the desktop to 256-colours and true-colour with no differences.  
other versions of windows may be affected as well.

   -Erik
Comment 1 Ryan C. Gordon 2009-09-13 16:33:17 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 2 Sam Lantinga 2009-09-21 03:05:19 UTC
At this point I recommend not using the hardware palette on Windows.  Almost all displays support thousands of colors and there are lots of quirks with Windows' palette handling.