Skip to content

Commit

Permalink
Optimize workgroup size on Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
shg8 committed Mar 14, 2024
1 parent 4ae6f74 commit f4656e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Renderer {

std::vector<vk::UniqueSemaphore> renderFinishedSemaphores;

uint32_t numRadixSortBlocksPerWorkgroup = 32;
uint32_t numRadixSortBlocksPerWorkgroup = __APPLE__ ? 256 : 32;

int fpsCounter = 0;
std::chrono::high_resolution_clock::time_point lastFpsTime = std::chrono::high_resolution_clock::now();
Expand Down

0 comments on commit f4656e8

Please sign in to comment.