diff options
| author | hachem <im@hachem.wtf> | 2026-08-18 15:24:44 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-18 15:24:44 +0200 |
| commit | 3c1a5d2fee33be1a9d29035603bed3d1d9faa598 (patch) | |
| tree | f068c8170605c0266af815d23e2b7323572e7048 /src | |
| parent | aabbeac3d9e2ac0f293ab43fec71e56091c823e8 (diff) | |
chore: optimization
Diffstat (limited to 'src')
| -rw-r--r-- | src/engine/engine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 4b97a7a..bdd468b 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -149,7 +149,7 @@ namespace Donut RenderCommand::disable_depth_test(); #ifdef __APPLE__ - const int tile = 24; + const int tile = 64; glEnable(GL_SCISSOR_TEST); for (int y = 0; y < ch; y += tile) { @@ -284,8 +284,8 @@ namespace Donut data.time = static_cast<float>(glfwGetTime()) * m_rotation_speed; #ifdef __APPLE__ - data.max_steps_moving = std::min(data.max_steps_moving, 10000); - data.max_steps_static = std::min(data.max_steps_static, 10000); + data.max_steps_moving = std::min(data.max_steps_moving, 4000); + data.max_steps_static = std::min(data.max_steps_static, 6000); #endif m_simulation_ubo->set_data(&data, sizeof(data)); |
