Triforce v0.2.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ruckus7382sfgsgdf
2026-11-10 19:32:48 -06:00
commit 34b3683441
1730 changed files with 554853 additions and 0 deletions

24
gpu/vk/vk_antilag.h Normal file
View File

@@ -0,0 +1,24 @@
// 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();
} // namespace mkwvk