mirror of
https://github.com/blu-dev/ssbu-less-lag.git
synced 2026-11-10 15:17:53 +00:00
re-add frame pacer and add readme
This commit is contained in:
1 parent
caa54caa25
commit
ffbe363281
6 files changed
+25
-26
No files matched your search
Generated
-14
@@ -2,12 +2,6 @@
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "bitflags"
|
||||
version = "1.3.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
||||
|
||||
[[package]]
|
||||
name = "itoa"
|
||||
version = "1.0.16"
|
||||
@@ -32,13 +26,6 @@ version = "2.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
||||
|
||||
[[package]]
|
||||
name = "ninput"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nnsdk"
|
||||
version = "0.5.0"
|
||||
@@ -174,7 +161,6 @@ dependencies = [
|
||||
name = "testing"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"ninput",
|
||||
"paste",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
||||
@@ -11,7 +11,6 @@ titleid = "01006A800016E000" # Smash Ultimate
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
ninput = { path = "../ninput", version = "0.1.0" }
|
||||
paste = "1.0.15"
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.147"
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# `ssbu-less-lag`
|
||||
|
||||
idk man 3 frames less input lag than ultimate or something
|
||||
|
||||
## Known Issues (WIPs)
|
||||
|
||||
1. High fighter counts (>= 4) might cause frame skips. This means doubles, dittos of characters like Ice Climbers, Pokemon Trainer, and Aegis.
|
||||
2. Certain stages might cause frame skips with the above fighters more often than other stages
|
||||
3. Results screen might have frame skips
|
||||
4. Final kill sparks might have frame skips
|
||||
|
||||
Until these issues are fixed this reassures that this mod is best used AS A PRACTICE TOOL on netplay to get closer to offline performance. Please do not use this in netplay tournaments for both you and your opponent's sake.
|
||||
|
||||
## Where's the USB Stuff?
|
||||
|
||||
The USB stuff requires some more polish, but considering that it's a very small amount of the overall input delay removed (roughly 2.5-5ms average), I would rather release this mod in it's current state and continue working on the others when I have time.
|
||||
|
||||
Thanks for understanding!
|
||||
+1
-1
@@ -21,7 +21,7 @@ pub fn main() {
|
||||
vsync_history::install();
|
||||
swapchain::install(DISABLE_VSYNC);
|
||||
off_by_one::install();
|
||||
pacer::install();
|
||||
// pacer::install();
|
||||
// profiling::setup();
|
||||
// sequencing::install();
|
||||
|
||||
|
||||
+5
-6
@@ -23,13 +23,12 @@ unsafe fn calc_nnsdk_offset() -> u64 {
|
||||
|
||||
#[skyline::hook(offset = 0x374c118, inline)]
|
||||
unsafe fn run_scene_update(_: &skyline::hooks::InlineCtx) {
|
||||
// SAFETY: This is basically a local variable (again)
|
||||
static mut CONTROLLER: ninput::Controller = ninput::Controller::new(0);
|
||||
// // SAFETY: This is basically a local variable (again)
|
||||
|
||||
while !RUN.swap(false, Ordering::SeqCst) {
|
||||
#[allow(static_mut_refs)]
|
||||
CONTROLLER.update();
|
||||
}
|
||||
// while !RUN.swap(false, Ordering::SeqCst) {
|
||||
// #[allow(static_mut_refs)]
|
||||
// CONTROLLER.update();
|
||||
// }
|
||||
}
|
||||
|
||||
/** Patches nvnWindowBuilderSetPresentInterval/nvnWindowSetPresentInterval (I don't remember which one)
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
use ninput::Controller;
|
||||
use skyline::{hooks::InlineCtx, patching::Patch};
|
||||
|
||||
use crate::{change_thread_priority, get_current_thread, profiling::OsTick};
|
||||
use crate::profiling::OsTick;
|
||||
|
||||
#[repr(u64)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Default, PartialOrd, Ord)]
|
||||
|
||||