mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
Move Memchecks support out of debug only builds
It wouldn't impact performance until at least one memcheck is enabled. Because of this, it can be used in release builds without much impact, the only thing that woudl change is the use of HasAny method instead of preprocessor conditionals. Since the perforamnce decrease comes right when the first memcheck is added and restored when the last is removed, it basically is all beneficial and works the same way.
This commit is contained in:
@ -316,15 +316,6 @@ void Clear()
|
||||
memset(m_pEXRAM, 0, EXRAM_SIZE);
|
||||
}
|
||||
|
||||
bool AreMemoryBreakpointsActivated()
|
||||
{
|
||||
#ifdef ENABLE_MEM_CHECK
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline u8* GetPointerForRange(u32 address, size_t size)
|
||||
{
|
||||
// Make sure we don't have a range spanning 2 separate banks
|
||||
|
Reference in New Issue
Block a user