Fix Memory Game Race Conditions with GameState + add threading for measurements

This commit is contained in:
2025-12-01 15:57:17 +01:00
parent 34fe75c0a8
commit 238141ec14
69 changed files with 162943 additions and 274 deletions
@@ -1,4 +1,5 @@
C:/Users/elise/Programmieren_3b/cmake-build-debug/CMakeFiles/Prog3B.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/CMakeFiles/Programmieren_3b.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/CMakeFiles/gamematrix_python.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/CMakeFiles/package.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/CMakeFiles/package_source.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/CMakeFiles/edit_cache.dir
@@ -43,3 +44,11 @@ C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/raylib-build/raylib/exte
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/raylib-build/raylib/external/glfw/src/CMakeFiles/install.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/raylib-build/raylib/external/glfw/src/CMakeFiles/install/local.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/raylib-build/raylib/external/glfw/src/CMakeFiles/install/strip.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/package.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/package_source.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/edit_cache.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/rebuild_cache.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/list_install_components.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/install.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/install/local.dir
C:/Users/elise/Programmieren_3b/cmake-build-debug/_deps/pybind11-build/CMakeFiles/install/strip.dir
@@ -19,6 +19,29 @@ CMake Deprecation Warning at cmake-build-debug/_deps/raylib-src/CMakeLists.txt:1
-- Compiling with the flags:
-- PLATFORM=PLATFORM_DESKTOP
-- GRAPHICS=GRAPHICS_API_OPENGL_33
-- Configuring done (0.9s)
-- Generating done (0.1s)
CMake Deprecation Warning at cmake-build-debug/_deps/pybind11-src/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- pybind11 v2.11.1
CMake Warning (dev) at cmake-build-debug/_deps/pybind11-src/tools/FindPythonLibsNew.cmake:98 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake-build-debug/_deps/pybind11-src/tools/pybind11Tools.cmake:50 (find_package)
cmake-build-debug/_deps/pybind11-src/tools/pybind11Common.cmake:188 (include)
cmake-build-debug/_deps/pybind11-src/CMakeLists.txt:210 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- pybind11::lto disabled (problems with undefined symbols for MinGW for now)
-- pybind11::thin_lto disabled (problems with undefined symbols for MinGW for now)
-- Configuring done (7.2s)
-- Generating done (0.3s)
-- Build files have been written to: C:/Users/elise/Programmieren_3b/cmake-build-debug
+23 -4
View File
@@ -14,7 +14,7 @@
#############################################
# Rule for compiling CXX files.
rule CXX_COMPILER__Prog3B_unscanned_Debug
rule CXX_COMPILER__Programmieren_3b_unscanned_Debug
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}C:\PROGRA~1\JETBRA~1\CLION2~1.5\bin\mingw\bin\G__~1.EXE $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
@@ -24,12 +24,31 @@ rule CXX_COMPILER__Prog3B_unscanned_Debug
#############################################
# Rule for linking CXX executable.
rule CXX_EXECUTABLE_LINKER__Prog3B_Debug
rule CXX_EXECUTABLE_LINKER__Programmieren_3b_Debug
command = C:\WINDOWS\system32\cmd.exe /C "$PRE_LINK && C:\PROGRA~1\JETBRA~1\CLION2~1.5\bin\mingw\bin\G__~1.EXE $FLAGS $LINK_FLAGS $in -o $TARGET_FILE -Wl,--out-implib,$TARGET_IMPLIB -Wl,--major-image-version,0,--minor-image-version,0 $LINK_PATH $LINK_LIBRARIES && $POST_BUILD"
description = Linking CXX executable $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for compiling CXX files.
rule CXX_COMPILER__gamematrix_python_unscanned_Debug
depfile = $DEP_FILE
deps = gcc
command = ${LAUNCHER}${CODE_CHECK}C:\PROGRA~1\JETBRA~1\CLION2~1.5\bin\mingw\bin\G__~1.EXE $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building CXX object $out
#############################################
# Rule for linking CXX shared module.
rule CXX_MODULE_LIBRARY_LINKER__gamematrix_python_Debug
command = C:\WINDOWS\system32\cmd.exe /C "$PRE_LINK && C:\PROGRA~1\JETBRA~1\CLION2~1.5\bin\mingw\bin\G__~1.EXE $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS $LINK_FLAGS -shared -o $TARGET_FILE -Wl,--major-image-version,0,--minor-image-version,0 $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD"
description = Linking CXX shared module $TARGET_FILE
restat = $RESTAT
#############################################
# Rule for running custom commands.
@@ -89,7 +108,7 @@ rule RERUN_CMAKE
# Rule for cleaning all built files.
rule CLEAN
command = "C:\Program Files\JetBrains\CLion 2024.3.5\bin\ninja\win\x64\ninja.exe" $FILE_ARG -t clean $TARGETS
command = C:\PROGRA~1\JETBRA~1\CLION2~1.5\bin\ninja\win\x64\ninja.exe $FILE_ARG -t clean $TARGETS
description = Cleaning all built files...
@@ -97,6 +116,6 @@ rule CLEAN
# Rule for printing all primary targets available.
rule HELP
command = "C:\Program Files\JetBrains\CLion 2024.3.5\bin\ninja\win\x64\ninja.exe" -t targets
command = C:\PROGRA~1\JETBRA~1\CLION2~1.5\bin\ninja\win\x64\ninja.exe -t targets
description = All primary targets available: