From 20e0add5b4e9a2e794664c53d78e9b5038e3d577 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Sat, 30 Mar 2024 22:53:36 +0800 Subject: [PATCH] Fix compiling again on Windows Also lowering framerate a bit --- JacksEscape.vcxproj | 13 +++++++++++-- JacksEscape.vcxproj.filters | 27 +++++++++++++++++++++++++++ main.cpp | 2 +- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/JacksEscape.vcxproj b/JacksEscape.vcxproj index 6716c5d..8260e8e 100644 --- a/JacksEscape.vcxproj +++ b/JacksEscape.vcxproj @@ -102,7 +102,7 @@ Level3 true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) true stdcpp20 @@ -117,7 +117,7 @@ true true true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true stdcpp20 @@ -133,9 +133,12 @@ + + + @@ -155,11 +158,17 @@ + + + + + + diff --git a/JacksEscape.vcxproj.filters b/JacksEscape.vcxproj.filters index d4fcbf9..c1bc3fa 100644 --- a/JacksEscape.vcxproj.filters +++ b/JacksEscape.vcxproj.filters @@ -69,6 +69,15 @@ Util + + 头文件 + + + 头文件 + + + 头文件 + @@ -128,5 +137,23 @@ Util + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + \ No newline at end of file diff --git a/main.cpp b/main.cpp index 7ff085d..e08960b 100644 --- a/main.cpp +++ b/main.cpp @@ -51,7 +51,7 @@ int main() { EndBatchDraw(); - Duration toSleep = {.microseconds = 1000000 / 300 - time_Reset(&lastFrame).microseconds}; + Duration toSleep = {.microseconds = 1000000 / 200 - time_Reset(&lastFrame).microseconds}; duration_Sleep(toSleep); }