Separate compiler optimization flags

The /O2 used before was actually a preset for a bunch of more specific
flags, which are now written explicitly for clarity and easier
modification later.
This commit is contained in:
KeybadeBlox 2026-01-03 16:13:44 -05:00
parent 4dae5206c0
commit 683818b637
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ all: src/JSRF/Jet2.obj
# Simple inference rule for producing object files # Simple inference rule for producing object files
.SUFFIXES: .cpp .obj .SUFFIXES: .cpp .obj
.cpp.obj: .cpp.obj:
CL.EXE /nologo /Wall /TP /W3 /O2 /Ob0 /MT /GX /Fo$@ /c $< CL.EXE /nologo /Wall /TP /W3 /Ogityb0 /MT /GX /Fo$@ /c $<
# Header files used for each object # Header files used for each object
src/JSRF/Jet2.obj: src/JSRF/Core.hpp src/XDK/D3D.hpp src/XDK/Win32.hpp\ src/JSRF/Jet2.obj: src/JSRF/Core.hpp src/XDK/D3D.hpp src/XDK/Win32.hpp\

View file

@ -569,7 +569,7 @@ void Game::frame() {
// Matching: yes // Matching: yes
int Game::mainLoop() { int Game::mainLoop() {
if (this->initState >= 0) while (true) { if (this->initState >= 0) while (true) {
if (this->fatalErr == FALSE) this->frame(); if (!this->fatalErr) this->frame();
else { else {
readInput(); readInput();
Sleep(0x10); Sleep(0x10);