From 9085b507a8614f63ee06c8c7304baf0f0290c85d Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sat, 30 Nov 2024 14:03:25 +0200 Subject: [PATCH] This somehow works --- CMakeLists.txt | 5 ----- include/memory.hpp | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d68d651e..b338e621 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,6 @@ option(BUILD_HYDRA_CORE "Build a Hydra core" OFF) option(BUILD_LIBRETRO_CORE "Build a Libretro core" OFF) option(ENABLE_RENDERDOC_API "Build with support for Renderdoc's capture API for graphics debugging" ON) option(DISABLE_SSE4 "Build with SSE4 instructions disabled, may reduce performance" OFF) -option(ENABLE_FASTMEM "Build with support for hardware fastmem (Can significantly improve performance)" ON) set(OPENGL_PROFILE ${DEFAULT_OPENGL_PROFILE} CACHE STRING "OpenGL profile to use if OpenGL is enabled. Valid values are 'OpenGL' and 'OpenGLES'.") set_property(CACHE OPENGL_PROFILE PROPERTY STRINGS OpenGL OpenGLES) @@ -630,10 +629,6 @@ if(ENABLE_HTTP_SERVER) target_compile_definitions(AlberCore PRIVATE PANDA3DS_ENABLE_HTTP_SERVER=1) endif() -if(ENABLE_FASTMEM) - target_compile_definitions(AlberCore PRIVATE PANDA3DS_HARDWARE_FASTMEM=1) -endif() - # Configure frontend if(ENABLE_QT_GUI) diff --git a/include/memory.hpp b/include/memory.hpp index b233ccf1..ce008335 100644 --- a/include/memory.hpp +++ b/include/memory.hpp @@ -16,6 +16,8 @@ #include "loader/ncsd.hpp" #include "services/region_codes.hpp" +#define PANDA3DS_HARDWARE_FASTMEM + namespace PhysicalAddrs { enum : u32 { VRAM = 0x18000000,