#54 closed defect (fixed)
SDL: fullRedraw flag not reset
| Reported by: | SF/stauff1 | Owned by: | SF/strigeus |
|---|---|---|---|
| Priority: | normal | Component: | --Other-- |
| Version: | Keywords: | ||
| Cc: | Game: |
Description
Hi,
In sdl.cpp, the fullRedraw flag can be set when the number of rectangles to be redrawn exceeds a threshold, but not reset. This causes the program to become unresponsive and hog a lot of cpu. The fix is fairly simple, around line 254, add a line like so:
.... if (fullRedraw) { SDL_UpdateRect(screen, 0,0,0,0); + fullRedraw = false; #if defined(SHOW_AREA) ....
Cheers,
- Matthew Duggan
Ticket imported from: #493614. Ticket imported from: bugs/54.
Change History (4)
comment:1 by , 24 years ago
comment:2 by , 24 years ago
| Owner: | set to |
|---|---|
| Resolution: | → fixed |
comment:3 by , 24 years ago
| Status: | new → closed |
|---|
comment:4 by , 7 years ago
| Component: | → --Other-- |
|---|
Note:
See TracTickets
for help on using tickets.

Fixed in CVS