Fix compiling again on Windows
Also lowering framerate a bit
This commit is contained in:
parent
1908234213
commit
20e0add5b4
@ -102,7 +102,7 @@
|
|||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<LanguageStandard>stdcpp20</LanguageStandard>
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -117,7 +117,7 @@
|
|||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<LanguageStandard>stdcpp20</LanguageStandard>
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -133,9 +133,12 @@
|
|||||||
<ClInclude Include="camera.h" />
|
<ClInclude Include="camera.h" />
|
||||||
<ClInclude Include="entity.h" />
|
<ClInclude Include="entity.h" />
|
||||||
<ClInclude Include="input.h" />
|
<ClInclude Include="input.h" />
|
||||||
|
<ClInclude Include="mapper_misc.h" />
|
||||||
<ClInclude Include="particle.h" />
|
<ClInclude Include="particle.h" />
|
||||||
<ClInclude Include="physics.h" />
|
<ClInclude Include="physics.h" />
|
||||||
<ClInclude Include="player.h" />
|
<ClInclude Include="player.h" />
|
||||||
|
<ClInclude Include="render_bundle.h" />
|
||||||
|
<ClInclude Include="render_component.h" />
|
||||||
<ClInclude Include="render_pattern.h" />
|
<ClInclude Include="render_pattern.h" />
|
||||||
<ClInclude Include="render_util.h" />
|
<ClInclude Include="render_util.h" />
|
||||||
<ClInclude Include="types.h" />
|
<ClInclude Include="types.h" />
|
||||||
@ -155,11 +158,17 @@
|
|||||||
<ClCompile Include="entity.c" />
|
<ClCompile Include="entity.c" />
|
||||||
<ClCompile Include="input.c" />
|
<ClCompile Include="input.c" />
|
||||||
<ClCompile Include="main.cpp" />
|
<ClCompile Include="main.cpp" />
|
||||||
|
<ClCompile Include="mapper_misc.c" />
|
||||||
|
<ClCompile Include="mapper_misc_render.cpp" />
|
||||||
<ClCompile Include="particle.c" />
|
<ClCompile Include="particle.c" />
|
||||||
<ClCompile Include="particle_render.cpp" />
|
<ClCompile Include="particle_render.cpp" />
|
||||||
<ClCompile Include="physics.c" />
|
<ClCompile Include="physics.c" />
|
||||||
<ClCompile Include="physics_move.c" />
|
<ClCompile Include="physics_move.c" />
|
||||||
<ClCompile Include="player.c" />
|
<ClCompile Include="player.c" />
|
||||||
|
<ClCompile Include="render_bundle.c" />
|
||||||
|
<ClCompile Include="render_bundle_draw.cpp" />
|
||||||
|
<ClCompile Include="render_bundle_file.c" />
|
||||||
|
<ClCompile Include="render_component.c" />
|
||||||
<ClCompile Include="render_pattern.c" />
|
<ClCompile Include="render_pattern.c" />
|
||||||
<ClCompile Include="render_util.cpp" />
|
<ClCompile Include="render_util.cpp" />
|
||||||
<ClCompile Include="types.c" />
|
<ClCompile Include="types.c" />
|
||||||
|
@ -69,6 +69,15 @@
|
|||||||
<ClInclude Include="util\rand.h">
|
<ClInclude Include="util\rand.h">
|
||||||
<Filter>Util</Filter>
|
<Filter>Util</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="render_bundle.h">
|
||||||
|
<Filter>头文件</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="mapper_misc.h">
|
||||||
|
<Filter>头文件</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="render_component.h">
|
||||||
|
<Filter>头文件</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="util\queue.c">
|
<ClCompile Include="util\queue.c">
|
||||||
@ -128,5 +137,23 @@
|
|||||||
<ClCompile Include="util\rand.c">
|
<ClCompile Include="util\rand.c">
|
||||||
<Filter>Util</Filter>
|
<Filter>Util</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="render_bundle_file.c">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="render_bundle.c">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="render_bundle_draw.cpp">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="mapper_misc.c">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="mapper_misc_render.cpp">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="render_component.c">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
2
main.cpp
2
main.cpp
@ -51,7 +51,7 @@ int main() {
|
|||||||
EndBatchDraw();
|
EndBatchDraw();
|
||||||
|
|
||||||
|
|
||||||
Duration toSleep = {.microseconds = 1000000 / 300 - time_Reset(&lastFrame).microseconds};
|
Duration toSleep = {.microseconds = 1000000 / 200 - time_Reset(&lastFrame).microseconds};
|
||||||
duration_Sleep(toSleep);
|
duration_Sleep(toSleep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user