Fill debug updates
Show final queue structure size at the end. Watching the fill blit happen is now a separate #define'd option.
This commit is contained in:
parent
5cfc185d77
commit
0431cce21f
1 changed files with 6 additions and 1 deletions
|
|
@ -60,6 +60,7 @@
|
||||||
#define WIDE_MATCH_THRESHOLD 3
|
#define WIDE_MATCH_THRESHOLD 3
|
||||||
|
|
||||||
// #define DEBUG
|
// #define DEBUG
|
||||||
|
// #define DEBUG_WATCH
|
||||||
|
|
||||||
#define QUEUE_SIZE_CHUNK 1024
|
#define QUEUE_SIZE_CHUNK 1024
|
||||||
|
|
||||||
|
|
@ -162,6 +163,10 @@ void cleanup_queue(void) {
|
||||||
if (queue != NULL)
|
if (queue != NULL)
|
||||||
free(queue);
|
free(queue);
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("queue_size = %d\n\n", queue_size);
|
||||||
|
#endif
|
||||||
|
|
||||||
queue_size = 0;
|
queue_size = 0;
|
||||||
queue_start = 0;
|
queue_start = 0;
|
||||||
queue_end = 0;
|
queue_end = 0;
|
||||||
|
|
@ -308,7 +313,7 @@ void simulate_flood_fill_outside_check(int x, int y, int y_outside)
|
||||||
if ((global_prog_anim % 800) == 1) /* Always lay sound _once_ */
|
if ((global_prog_anim % 800) == 1) /* Always lay sound _once_ */
|
||||||
playsound(global_canvas, 1, SND_FILL, 1, x, SNDDIST_NEAR);
|
playsound(global_canvas, 1, SND_FILL, 1, x, SNDDIST_NEAR);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG_WATCH
|
||||||
if (global_prog_anim % 100 == 0)
|
if (global_prog_anim % 100 == 0)
|
||||||
{
|
{
|
||||||
SDL_BlitSurface(global_canvas, NULL, global_screen, NULL);
|
SDL_BlitSurface(global_canvas, NULL, global_screen, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue