mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-11-03 04:18:39 +00:00
[android] Snapdragon 865 patches (#23)
Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Reviewed-on: https://git.bixed.xyz/Bix/eden/pulls/23
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
// SPDX-FileCopyrightText: 2015 Citra Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
// Uncomment this to disable microprofile. This will get you cleaner profiles when using
|
||||
// Use this to disable microprofile. This will get you cleaner profiles when using
|
||||
// external sampling profilers like "Very Sleepy", and will improve performance somewhat.
|
||||
// #define MICROPROFILE_ENABLED 0
|
||||
#ifdef ANDROID
|
||||
#define MICROPROFILE_ENABLED 0
|
||||
#define MICROPROFILEUI_ENABLED 0
|
||||
#define MicroProfileOnThreadExit() do{}while(0)
|
||||
#define MICROPROFILE_TOKEN(x) 0
|
||||
#define MicroProfileEnter(x) 0
|
||||
#define MicroProfileLeave(x, y) ignore_all(x, y)
|
||||
#endif
|
||||
|
||||
// Customized Citra settings.
|
||||
// This file wraps the MicroProfile header so that these are consistent everywhere.
|
||||
@@ -19,6 +29,12 @@
|
||||
typedef void* HANDLE;
|
||||
#endif
|
||||
|
||||
#include <tuple>
|
||||
template <typename... Args>
|
||||
void ignore_all(Args&&... args) {
|
||||
(static_cast<void>(std::ignore = args), ...);
|
||||
}
|
||||
|
||||
#include <microprofile.h>
|
||||
|
||||
#define MP_RGB(r, g, b) ((r) << 16 | (g) << 8 | (b) << 0)
|
||||
|
||||
Reference in New Issue
Block a user