diff --git a/Command Prompt.lnk b/Command Prompt.lnk new file mode 100644 index 0000000..1799be7 Binary files /dev/null and b/Command Prompt.lnk differ diff --git a/build.bat b/build.bat index 2c8861b..41244e7 100644 --- a/build.bat +++ b/build.bat @@ -4,8 +4,6 @@ set PlatformCompilerFlags=/I ..\lib\SDL2\include set CommonLinkerFlags=-incremental:no -opt:ref set PlatformLinkerFlags=/LIBPATH:..\lib\SDL2\lib\x64 /SUBSYSTEM:CONSOLE SDL2.lib SDL2main.lib -REM call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 - cls if not exist "build" mkdir build pushd build diff --git a/code/win32_platform.cpp b/code/win32_platform.cpp index 73e82bb..4a00219 100644 --- a/code/win32_platform.cpp +++ b/code/win32_platform.cpp @@ -12,7 +12,7 @@ const char *WindowTitle = "Ray Tracing in a Weekend"; -const uint32_t TARGET_FRAME_RATE = 30; +const uint32_t TARGET_FRAME_RATE = 10; const uint32_t TICKS_PER_FRAME = 1000 / TARGET_FRAME_RATE; const uint32_t WINDOW_WIDTH = 500; const uint32_t WINDOW_HEIGHT = 250; diff --git a/win32_devenv.bat b/win32_devenv.bat new file mode 100644 index 0000000..02e20be --- /dev/null +++ b/win32_devenv.bat @@ -0,0 +1,2 @@ +@echo off +call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64