AMD FSR 3 frame generation for cards without DLSS frame generation; start notice; F1 preload
- FSR 3 frame generation (AMD FidelityFX 2.x DLLs, never in the repository: VICTORY_FIDELITYFX_DIR or a fidelityfx folder beside victory.exe), 2x at most, with the HUD-less picture so the HUD is not doubled. Series X needs DLSS upscaling. - F1 menu: FRAME GEN TYPE (auto, DLSS, FSR 3); PRELOAD SHADERS; unset rows read NOT SET; save and restart opens its own console window. - A notice at the start (30 s on the picture, and in the console): the GPU, which frame generation runs, and why not (DLSS off, NVIDIA files missing, or the card). - victory preload / --preload; warm keys its work to the program's path. - Logs are named victory-nvidia-...; README: what each card supports, first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d12eb1b23d
commit
29d8dbf7d9
12 files changed
+1712
-118
No files matched your search
@@ -2828,7 +2828,7 @@ fn line() -> std::sync::MutexGuard<'static, Line> {
|
||||
}
|
||||
|
||||
/// Why flights were settled ([`LATE_STATS`]' places from 2 on).
|
||||
const WHY_SYNC: usize = 2;
|
||||
pub(crate) const WHY_SYNC: usize = 2;
|
||||
const WHY_CARD_DONE: usize = 3;
|
||||
const WHY_VALUE: usize = 4;
|
||||
const WHY_STALE: usize = 5;
|
||||
@@ -9234,6 +9234,8 @@ struct Presenter {
|
||||
composer: Option<crate::compose::Composer>,
|
||||
/// The numbers panel (F3), in every build.
|
||||
panel: panel::Panel,
|
||||
/// What the card does for frame generation, for the first seconds.
|
||||
notice: panel::Notice,
|
||||
/// The F1 settings menu.
|
||||
menu: menu::Menu,
|
||||
}
|
||||
@@ -9703,8 +9705,8 @@ impl Meter {
|
||||
let Some(caption) = &self.caption else { return };
|
||||
// With frame generation showing more frames than are rendered, both rates.
|
||||
let text = match crate::streamline::shown_per_frame() {
|
||||
1 => format!(" | VIctory {fps:.0} fps {ms:.1} ms/frame {draws:.0} draws/frame"),
|
||||
per => format!(" | VIctory {fps:.0} fps (frame gen {:.0} fps) {ms:.1} ms/frame {draws:.0} draws/frame", fps * f64::from(per)),
|
||||
1 => format!(" | VIctory-NVIDIA {fps:.0} fps {ms:.1} ms/frame {draws:.0} draws/frame"),
|
||||
per => format!(" | VIctory-NVIDIA {fps:.0} fps (frame gen {:.0} fps) {ms:.1} ms/frame {draws:.0} draws/frame", fps * f64::from(per)),
|
||||
};
|
||||
let mut text: Vec<u16> = caption.iter().copied().chain(text.encode_utf16()).collect();
|
||||
text.push(0);
|
||||
@@ -9799,6 +9801,7 @@ impl Host {
|
||||
// Presents sent ahead hold back buffers until they have run.
|
||||
settle_now(WHY_SYNC);
|
||||
crate::streamline::resizing();
|
||||
crate::streamline::fsr::resizing();
|
||||
// SAFETY: no back buffer is held; every submission was waited for.
|
||||
let resized = unsafe {
|
||||
p.swap_chain
|
||||
@@ -9972,6 +9975,7 @@ impl Host {
|
||||
crate::popwatch::take(&self.device, list, texture)
|
||||
};
|
||||
p.panel.draw(self, copy, &back, (width, height), format);
|
||||
p.notice.draw(self, copy, &back, (width, height), format);
|
||||
p.menu.draw(self, copy, &back, (width, height), format);
|
||||
#[cfg(not(feature = "diagnostics"))]
|
||||
let _ = frame;
|
||||
@@ -9993,6 +9997,17 @@ impl Host {
|
||||
));
|
||||
list.ResourceBarrier(&post);
|
||||
}
|
||||
// FSR 3 frame generation: this frame's prepare dispatch, last in
|
||||
// the list before the Present (its own descriptor heaps).
|
||||
crate::streamline::fsr::before_present(
|
||||
&self.device,
|
||||
&p.swap_chain,
|
||||
list,
|
||||
[width, height],
|
||||
format,
|
||||
(texture, state_u32),
|
||||
composed && overlay.is_some(),
|
||||
);
|
||||
copy.close();
|
||||
let flown = match slot {
|
||||
Some(i) => {
|
||||
@@ -10078,14 +10093,17 @@ impl Host {
|
||||
SwapEffect: DXGI_SWAP_EFFECT_FLIP_DISCARD,
|
||||
..Default::default()
|
||||
};
|
||||
// FSR 3 frame generation (where DLSS Frame Generation does not
|
||||
// run): FidelityFX's frame interpolation swap chain.
|
||||
let fsr = crate::streamline::fsr::swap_chain(&factory, &self.queue, hwnd, &desc);
|
||||
// With frame generation, through Streamline's factory proxy and
|
||||
// on its queue proxy: the swap chain is its proxy.
|
||||
let proxied = crate::streamline::swap_chain_factory(&factory).map(|(proxy, queue)| {
|
||||
let proxied = if fsr.is_some() { None } else { crate::streamline::swap_chain_factory(&factory) }.map(|(proxy, queue)| {
|
||||
proxy
|
||||
.CreateSwapChainForHwnd(&queue, hwnd, &desc, None, None)
|
||||
.and_then(|s| s.cast::<IDXGISwapChain3>())
|
||||
});
|
||||
let swap_chain = match proxied {
|
||||
let swap_chain = if let Some(swap_chain) = fsr { swap_chain } else { match proxied {
|
||||
Some(Ok(swap_chain)) => {
|
||||
crate::streamline::swap_chain_made(true, None);
|
||||
// Frame generation must be off across a change between
|
||||
@@ -10105,7 +10123,7 @@ impl Host {
|
||||
None => crate::streamline::present_hooked(
|
||||
factory.CreateSwapChainForHwnd(&self.queue, hwnd, &desc, None, None)?.cast::<IDXGISwapChain3>()?,
|
||||
),
|
||||
};
|
||||
} };
|
||||
let copy = self.new_list()?;
|
||||
copy.close();
|
||||
tracing::info!(width, height, format = format.0, "presenting to a window");
|
||||
@@ -10121,6 +10139,7 @@ impl Host {
|
||||
meter: Meter::new(),
|
||||
composer: None,
|
||||
panel: panel::Panel::new(),
|
||||
notice: panel::Notice::new(),
|
||||
menu: menu::Menu::new(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user