Skip to content

Speed hacks ssh host#46

Open
Are022 wants to merge 10 commits intomasterfrom
speed-hacks
Open

Speed hacks ssh host#46
Are022 wants to merge 10 commits intomasterfrom
speed-hacks

Conversation

@Are022
Copy link

@Are022 Are022 commented Dec 28, 2021

…rt for PAL timings (20 ms per frame).

User-selected frameskip causes slowdowns if the game runs slower than the resulting frame rate, but synchronises correctly if the game runs faster.

Automatic frame skipping is still the default. It now only skips up to 8 frames, but in some games still skips that entire 8 frames. What's needed is an algorithm that averages frame latencies over a few seconds and skips while the latency is LOWER than the average.
…und speed by 25% if frame skip 3 (Show 1 in 4) rendered a frame early.

Optimise the controller code. I don't expect to allow remapping any time soon, because the DS has buttons for every single SNES controller button and nothing more.
…1 FPS to 8 FPS right away and constantly. The equivalent frame skip will be 2, 3, 5 or 8 most of the time, depending on the game, and will vary a bit depending on rendering demands.

For example, the frame skipping in Super Mario World is 3 on the map and in graphically simple levels, and 5 in complex levels.
…p mode.

Remove old automatic frameskip code.
Adjust the automatic frame skipping code to require auto_equivalent_skip to be greater than 0 before reducing the skip if it's early. Otherwise, we end up with overflow, thus skipping 4 billion frames.
Conflicts:
	CATSFC/system/language.msg
	Makefile
	README.md
	source/cpuexec.cpp
	source/nds/entry.cpp
	source/nds/gui.c
	source/nds/gui.h
@Are022 Are022 marked this pull request as ready for review December 28, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants