Skip to content

Enable and optimize CPU threading with various fixes#1767

Merged
midwan merged 19 commits intomasterfrom
cpu-thread
Jan 27, 2026
Merged

Enable and optimize CPU threading with various fixes#1767
midwan merged 19 commits intomasterfrom
cpu-thread

Conversation

@midwan
Copy link
Collaborator

@midwan midwan commented Jan 26, 2026

Fixes # .

Changes proposed in this pull request:

  • Added conditional compilation for CPU threading via #ifdef WITH_THREADED_CPU.
  • Fixed compatibility issues between CPU threading and JIT by making them mutually exclusive.
  • Resolved issues with framerate and crashes when using CPU threading and zerocopy.
  • Optimized CPU threading performance with a 10% boost through register batching and sync points.
  • Included diagnostic logs for CPU threading on exit.

@midwan

midwan added 19 commits January 12, 2026 20:28
Speed is still much slower than the non-threaded option, needs more work.
- Added cpu_thread for diagnostics (written to the logfile on exit)
- register batching and sync points = 10% increase in performance
Speed is still much slower than the non-threaded option, needs more work.
# Conflicts:
#	src/osdep/amiberry_gfx.cpp
- Added cpu_thread for diagnostics (written to the logfile on exit)
- register batching and sync points = 10% increase in performance
…into cpu-thread

# Conflicts:
#	src/osdep/amiberry_gfx.cpp
Since these two options don't play nice when combined, we'll make them mutually exclusive for now
@midwan midwan self-assigned this Jan 26, 2026
@midwan midwan merged commit 822c70f into master Jan 27, 2026
85 of 86 checks passed
@midwan midwan deleted the cpu-thread branch January 27, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant