aboutsummaryrefslogtreecommitdiff
path: root/plat_sdl.c
AgeCommit message (Collapse)Author
2022-03-27Changes capacity to occupancy and return whole number as percentneonloop
Avoids float operations and redundant "1 -"
2022-03-27Adds dynamic audio rate control optionneonloop
When DRC is on, game syncs to frame rate instead of audio buffer capacity. Audio is resampled to generate more samples when buffer is low and less when buffer is high, to keep buffer 40%-60% full. Buffer size doubled to keep same avg. audio latency value. Audio can distort when buffer is out of range, not often during gameplay. Better resampler could improve but would be slower. When buffer is always out of range (heavy frameskip), it is better to leave off, DRC doesn't help anyway then. Idea from RetroArch audio_driver.c and https://near.sh/articles/audio/dynamic-rate-control
2022-03-25Skips main loop fb flip when screen is skippedneonloop
If core hasn't updated screen, no need to flip. Can save vsync delay, makes ff faster
2022-03-25Adds passthrough resampler when core rate is supportedneonloop
Small improvement to performance
2021-09-22Skips audio writing when buffer size is 0neonloop
This keeps from hanging when audio is sent before content is loaded (pcsx_rearmed). picoarch cannot know correct frame rate / sample rate before content is loaded (incorrect to call retro_get_system_av_info then) so best to just skip it
2021-09-08Avoids possible divide by zerosneonloop
2021-09-07Enables softpatching for cores loading content from diskneonloop
If a core sets need_fullpath, content is patched and written to a file in /tmp. This allows patching content for gpsp and probably others.
2021-08-27Adds a standalone multi-emulator modeneonloop
When starting without arguments, can select a core in the current directory and some content (a game). Allows loading a different game from the in-game menu.
2021-08-24Adds option for CPU % displayneonloop
2021-08-21Updates message display and adds loading message to pcsxneonloop
2021-08-14Adds auto-frameskip to pcsx_rearmedneonloop
2021-08-13Adds screenshots to savestatesneonloop
2021-08-12Adds screenshot functionneonloop
2021-08-07Adds generic nearest and smooth scalersneonloop
Smooth is slower (10-15%) than a scaler built for a specific resolution. Works well for downscaling and for odd screen ratios until a custom scaler is built. Replaces the snes smooth scaler (outperforms it) and the gba smooth scaler (looks better)
2021-08-04Initial commitneonloop