Skip to content

[WIP] Port to linux savestates efficiency v2#60

Draft
DoorDasher81 wants to merge 19 commits intoBrawlback-Team:savestates-efficiency-v2from
DoorDasher81:port-to-linux-savestates-efficiency-v2
Draft

[WIP] Port to linux savestates efficiency v2#60
DoorDasher81 wants to merge 19 commits intoBrawlback-Team:savestates-efficiency-v2from
DoorDasher81:port-to-linux-savestates-efficiency-v2

Conversation

@DoorDasher81
Copy link

@DoorDasher81 DoorDasher81 commented Feb 14, 2025

Port savestates-efficiency-v2 branch.

build

mkdir build && cd build && cmake -DLINUX_LOCAL_DEV=true -DCMAKE_CXX_FLAGS="-march=native" -DCMAKE_C_FLAGS="-march=native" -DCMAKE_BUILD_TYPE=Debug ..

personal todos

  • test match, game

    • debug local match crash
  • add static TODO assertions for mac

#include <Common/MemoryUtil.h>

#ifdef __linux__
#include <mm_malloc.h> // _mm_alloc, _mm_free
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about this.

#ifdef _WIN32
DWORD dw = GetLastError();
ERROR_LOG_FMT(BRAWLBACK, "WRITTEN PAGE WRITE FAILED DUE TO A FAILURE ({}) TO WRITE PROTECT. THE REASON IS: {}\n", result, dw);
#elif __linux__
Copy link

@KittenBrix KittenBrix Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocker safer to use #elif defined(__linux__) if you can't guarantee we're populating linux. Additionally you can use #elif defined(__APPLE__) for mac specific check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants