diff --git a/Makefile b/Makefile index 572371c..c9e4986 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,9 @@ FLAGS = -Wall -Wextra -ggdb -fno-caret-diagnostics -fno-show-column -Wno-missing ifeq ($(DETECTED_OS),macos) INCLUDE = -I./sdl/include/ - LIBS = ./sdl/lib/arm_macos/libSDL2.a -lm - FRAMEWORKS = -framework IOKit -framework Cocoa -framework OpenGL + LIBS = ./sdl/lib/arm-macos/libSDL2.a -lm + FRAMEWORKS = -framework Cocoa -framework IOKit -framework CoreAudio -framework AudioToolbox -framework ForceFeedback -framework Carbon -framework GameController -framework Metal -framework QuartzCore -framework CoreHaptics + else ifeq ($(DETECTED_OS),linux) INCLUDE = -I./sdl/include/ LIBS = ./sdl/lib/x86_64-linux/libSDL2.a -lm -lX11 diff --git a/sdl_handmade.cpp b/sdl_handmade.cpp index bd9ad00..c678ba0 100644 --- a/sdl_handmade.cpp +++ b/sdl_handmade.cpp @@ -395,7 +395,7 @@ S32 main(int argc, char *argv[]) #endif // Also, __rdtsc is not available on MacOS ARM; I have not checked MacOS x64. S32 MonitorRefreshHz = SDLGetWindowRefreshRate(Window); - S32 GameUpdateHz = MonitorRefreshHz; + S32 GameUpdateHz = MonitorRefreshHz / 2; F32 TargetSecondsPerFrame = 1.0f / (F32)GameUpdateHz; game_controller_input *OldKeyboardController = GetController(OldInput, 0);