Mercurial > games > semicongine
changeset 941:e3ef8ebdda46
did: cleanup unnecessasry annotations, comments
author | sam <sam@basx.dev> |
---|---|
date | Fri, 29 Mar 2024 16:01:53 +0700 |
parents | 459066429a72 |
children | 8526d1da2f69 |
files | semicongine/audio.nim semicongine/engine.nim |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/audio.nim Fri Mar 29 15:44:17 2024 +0700 +++ b/semicongine/audio.nim Fri Mar 29 16:01:53 2024 +0700 @@ -269,7 +269,7 @@ mixer[] = initMixer() audiothread.createThread(audioWorker) debug "Created audio thread" - when defined(window): + when defined(windows): SetThreadPriority(audiothread.handle(), THREAD_PRIORITY_TIME_CRITICAL) when defined(linux): discard pthread_setschedprio(Pthread(audiothread.handle()), cint(-20))
--- a/semicongine/engine.nim Fri Mar 29 15:44:17 2024 +0700 +++ b/semicongine/engine.nim Fri Mar 29 16:01:53 2024 +0700 @@ -1,5 +1,3 @@ -{.experimental: "codeReordering".} - import std/options import std/sequtils import std/logging @@ -51,6 +49,8 @@ eventHandler: proc(engine: var Engine, event: Event) fullscreen: bool +# forward declarations +func getAspectRatio*(engine: Engine): float32 proc destroy*(engine: var Engine) = checkVkResult engine.device.vk.vkDeviceWaitIdle() @@ -88,6 +88,8 @@ if debug: instanceExtensions.add "VK_EXT_debug_utils" layers.add "VK_LAYER_KHRONOS_validation" + # This stuff might be usefull if we one day to smart GPU memory allocation, + # but right now it just clobbers up the console log # putEnv("VK_LAYER_ENABLES", "VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT") putEnv("VK_LAYER_ENABLES", "VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_AMD,VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_NVIDIA,VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXTVK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT,VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT")