mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
In-game mods (GameBanana browser, search and installs, with the Mask Salesman), code-patch and cheat mods, the devs' test18 to test45 work (full performance overlay, frame pacing on, steady frame rate, save export and import, bug capture, new options rows, Setup's Mods page and Add to Steam), occlusion queries and new defaults, Auto resolution that scales, replay helper threads and robust buffers off by default, the options in sections.
28 lines
1.3 KiB
C++
28 lines
1.3 KiB
C++
// AMD Anti-Lag 2 through VK_AMD_anti_lag (vk_antilag.cpp): the driver delays the start of the game's next frame so that its
|
|
// input is sampled later and the frame waits less in the queue, for less delay from input to the screen.
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "vk_internal.h"
|
|
|
|
namespace mkwvk {
|
|
|
|
/// The extension it needs (VK_AMD_anti_lag), added to `want` when the device has it
|
|
void antilag_device_extensions(std::vector<const char*>& want, const std::vector<VkExtensionProperties>& all);
|
|
/// Its feature (antiLag) into the device's feature chain (*tail), before the features are queried
|
|
void antilag_device_features(void**& tail);
|
|
/// After the device is made: whether Anti-Lag 2 can run (the feature there), its function loaded
|
|
void antilag_device_created();
|
|
/// Anti-Lag 2 can run on this device: the Insert menu's row offers it only then
|
|
bool antilag_available();
|
|
/// Before the present: the frame's present stage
|
|
void antilag_present();
|
|
/// After the present: the next frame's input stage, where the driver waits until that frame should start
|
|
void antilag_input();
|
|
/// (Triforce) Its stages are given now (the row on and the device able): the present thread (vk_replay.cpp,
|
|
/// RX_VK_PRESENT_THREAD) is not used then, as its present stage would come after the next frame's input stage
|
|
bool antilag_running();
|
|
|
|
} // namespace mkwvk
|