Submissions are prepared and sent by a thread of ours (VICTORY_ASYNC_SUBMIT=1, off)
The idea is fxceless/victory-fork's, commit f85101b6. Here one line holds what all queues were given, presents too, in the order of the calls. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9ec6973b48
commit
92cce2ac9d
4 files changed
+868
-9
No files matched your search
@@ -285,7 +285,9 @@ pub(crate) fn submissions() -> (u64, u64) {
|
||||
/// Drops `object` once every submission running now has finished: at once
|
||||
/// if none is.
|
||||
pub(crate) fn retire<T: 'static>(object: T) {
|
||||
let started = STARTED.load(Ordering::Acquire);
|
||||
// (Those the title made and the host has not begun get the next numbers.)
|
||||
let queued = crate::queue::queued();
|
||||
let started = STARTED.load(Ordering::Acquire) + queued;
|
||||
if started <= FINISHED.load(Ordering::Acquire) {
|
||||
RETIREMENTS[0].fetch_add(1, Ordering::Relaxed);
|
||||
drop(object);
|
||||
@@ -4625,6 +4627,8 @@ impl Host {
|
||||
/// Runs closed lists and waits for them, and with [`late`] for
|
||||
/// everything sent to the card before them, which is settled first.
|
||||
pub(crate) fn execute(&self, runs: &[&HostList]) {
|
||||
// Behind what the title's queues were given before it.
|
||||
crate::queue::before_sync();
|
||||
let _ = self.submit(runs, false);
|
||||
}
|
||||
|
||||
@@ -7680,6 +7684,7 @@ impl Meter {
|
||||
crate::shadow::exact_line(frames);
|
||||
crate::descriptor::sync_line(frames);
|
||||
late_line(frames);
|
||||
crate::queue::behind_line(frames);
|
||||
card_clock_line(frames, ms);
|
||||
crate::shadow::back_line(frames);
|
||||
#[cfg(feature = "diagnostics")]
|
||||
|
||||
Reference in new issue
Block a user