mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Add shadow toggle (F4) and distance-based WMO group culling
Shadow toggle allows disabling shadow pass for performance testing. Distance culling skips WMO groups beyond 200 units. Occlusion queries disabled by default as overhead outweighs benefits in dense scenes.
This commit is contained in:
parent
83ef27c570
commit
ebf349ec7c
5 changed files with 29 additions and 11 deletions
|
|
@ -255,6 +255,14 @@ void Application::run() {
|
|||
LOG_INFO("Performance HUD: ", enabled ? "ON" : "OFF");
|
||||
}
|
||||
}
|
||||
// F4: Toggle shadows
|
||||
else if (event.key.keysym.scancode == SDL_SCANCODE_F4) {
|
||||
if (renderer) {
|
||||
bool enabled = !renderer->areShadowsEnabled();
|
||||
renderer->setShadowsEnabled(enabled);
|
||||
LOG_INFO("Shadows: ", enabled ? "ON" : "OFF");
|
||||
}
|
||||
}
|
||||
// T: Toggle teleporter panel
|
||||
else if (event.key.keysym.scancode == SDL_SCANCODE_T) {
|
||||
if (state == AppState::IN_GAME && uiManager) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue