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

Summary: setting the palette causes 200% slowdown on future drawing.
Product: SDL Reporter: punkass <punk>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-1.2.14
Version: 1.2.12   
Hardware: x86   
OS: Windows (95/98/ME)   

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.