Skip to content

Commit

Permalink
Turn on SDL_Gpu cycling for backbuffer blit to fix perf issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyGaul committed Oct 21, 2024
1 parent 8e7553e commit c76e683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/cute_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ typedef struct CF_MemoryPool CF_MemoryPool;
* @brief Creates a memory pool.
* @param element_size The size of each allocation.
* @param element_count The number of elements in the internal pool.
* @param alignment An alignment boundary, must be a power of two.
* @return Returns a memory pool pointer.
* @related cf_destroy_memory_pool cf_memory_pool_alloc cf_memory_pool_free
Expand Down
2 changes: 1 addition & 1 deletion src/cute_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ int cf_app_draw_onto_screen(bool clear)
.destination = dst,
.flip_mode = SDL_FLIP_NONE,
.filter = SDL_GPU_FILTER_NEAREST,
.cycle = false,
.cycle = true,
};
SDL_BlitGPUTexture(app->cmd, &blit_info);
}
Expand Down

0 comments on commit c76e683

Please sign in to comment.