libretro / libretro/RetroArch

[Linux] Save/load state takes a long time

Open
#10,428 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Description

When on any core (I experienced it on M64 Plus, Snes9x and bsnes), saving and loading state often takes 15+ seconds

Expected behavior

Saving and loading state happens within less than 1 second

Actual behavior

Saving and loading state (particularly saving) usually takes at least 15 seconds

Steps to reproduce the bug
  1. load a core
  2. load a game
  3. save state
  4. load state
Bisect Results

After 1.8.5 update

Version/Commit
  • RetroArch: Frontend for libretro -- v1.8.5 -- b01aabf7d1 --
Environment information
  • OS: Arch Linux, kernel 5.6.3-arch1-1
  • Compiler: gcc 9.3.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the save and load state steps on Arch Linux with the M64 Plus, Snes9x, and bsnes cores, comparing behavior before and after the 1.8.5 update. Trace the state-saving path to identify why saving and loading take 15 or more seconds; done means both operations complete in under one second.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
operating-systems, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.