mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-25 18:48:51 -04:00
Triforce v0.8.0
Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
@@ -114,4 +114,16 @@ inline bool hold_met(uint64_t total, uint64_t live, uint64_t dead, uint64_t evic
|
||||
return going >= total || total - going <= evict_to;
|
||||
}
|
||||
|
||||
/// (Triforce) The allowance as the rules take it, from the driver's count (used) and allowance: one the driver gives as the
|
||||
/// count itself, within kAtCount, is past. AMD's Windows driver reports a process over what it allows as allowed what it uses
|
||||
/// (an RX 6600 at 5940 of 5940 MB, another at 6.6 of 6.6 GB after 5.3 of 6.5). Taken as it is, every rule saw the count within
|
||||
/// it while the driver paged. Then a tenth under the count (kPastShare), so the rules give back until the driver says again how
|
||||
/// much it allows. An allowance under the count is past already and stays as it is; 0 (unknown) too
|
||||
inline constexpr uint64_t kAtCount = 16ull << 20;
|
||||
inline constexpr uint64_t kPastShare = 10;
|
||||
inline uint64_t past_allowance(uint64_t used, uint64_t allowed) {
|
||||
if (!allowed || allowed + kAtCount < used || allowed > used + kAtCount) return allowed;
|
||||
return used - used / kPastShare;
|
||||
}
|
||||
|
||||
} // namespace vram_compact
|
||||
|
||||
Reference in New Issue
Block a user