mirror of
https://git.triforceproject.com/triforce/source
synced 2026-12-02 05:48:50 -04:00
Triforce v0.9.1
The 16 GB update: idle memory unlocked and handed back to Windows while playing, empty pages under freed locks returned, and a page-file check at launch that warns before a too-small page file can crash the game.
This commit is contained in:
@@ -766,6 +766,19 @@ int rx_guest_release(uint64_t lo, uint64_t hi, int (*release)(uint64_t lo, uint6
|
||||
if (away) hos_vcore_back();
|
||||
return r == 1 ? 1 : 0;
|
||||
}
|
||||
/* ((Triforce, 12-01) The ranges of guest memory whose Vulkan imports were freed since the last ask (the back end's
|
||||
mkwvk_freed_ranges, found by name): hos_mem.c hos_mem_zero_give_back looks there for pages to give back. The count, 0 when
|
||||
there is no such back end */
|
||||
int rx_freed_ranges(uint64_t (*out)[2], int max) {
|
||||
if (!vk || max <= 0) return 0;
|
||||
static int (*volatile fn)(uint64_t (*)[2], int);
|
||||
static volatile int looked;
|
||||
if (!looked) {
|
||||
fn = (int (*)(uint64_t (*)[2], int))(void *)GetProcAddress(vk_module, "mkwvk_freed_ranges");
|
||||
looked = 1;
|
||||
}
|
||||
return fn ? fn(out, max) : 0;
|
||||
}
|
||||
/* (Triforce) The census's second line (mkw_glue.c census_main): the Vulkan back end's big holders of memory, as text (its
|
||||
mkwvk_memory_holders, found by name). Its length, 0 when there is none */
|
||||
int rx_memory_holders(char *out, size_t n) {
|
||||
|
||||
Reference in New Issue
Block a user