mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-20 08:39:58 -04:00
Triforce v0.4.0
What was merged from NX2navi (DLSS frame generation, AMD FSR 4 in Setup builds, texture detail by video memory, sprint, volume, frame caps, safer saves, the above-60 fixes), the ultrawide HUD at the screen edges, camera speed, movies without the AV1 Video Extension, the 5120x2880 + RenoDX HDR start fix, the renderer work of 11-14 and the first float changes of the lift.
This commit is contained in:
@@ -21,7 +21,16 @@ void hos_commit(uint64_t addr, uint64_t size) {
|
||||
hos_log("mem: commit of %#llx bytes at %#llx: outside the guest window", (unsigned long long)size, (unsigned long long)addr);
|
||||
return;
|
||||
}
|
||||
const uint64_t lo = addr & ~0xFFFFULL, hi = (addr + size + 0xFFFF) & ~0xFFFFULL;
|
||||
uint64_t lo = addr & ~0xFFFFULL, hi = (addr + size + 0xFFFF) & ~0xFFFFULL;
|
||||
{ /* (HOS_LARGE_PAGES: the heap's large pages are a reservation of their own, committed whole; what lies below or
|
||||
above them is committed by itself) */
|
||||
extern uint64_t hos_large_lo, hos_large_hi;
|
||||
if (hos_large_hi && lo < hos_large_hi && hi > hos_large_lo) {
|
||||
if (lo < hos_large_lo) hos_commit(lo, hos_large_lo - lo);
|
||||
if (hi <= hos_large_hi) return;
|
||||
lo = hos_large_hi;
|
||||
}
|
||||
}
|
||||
if (!VirtualAlloc(GP(lo), (SIZE_T)(hi - lo), MEM_COMMIT, PAGE_READWRITE)) {
|
||||
const DWORD err = GetLastError();
|
||||
hos_log("mem: commit of %#llx bytes at %#llx failed (error %lu)", (unsigned long long)(hi - lo),
|
||||
|
||||
Reference in New Issue
Block a user