fwcd / fwcd/mini-blocks

Investigate threading and concurrency issues

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Swift
Stars
12
Forks
2
PR merge metrics
No merged PRs in 30d

Description

While `AppKit` dispatches UI events on the main thread, `SceneKit` and `SpriteKit` seem to have their own private render threads, potentially resulting in race conditions, use-after-frees and other concurrency issues when the model is modified/accessed from different threads:

image

A potential solution would be to look into Swift 5's new actor classes.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by tracing how AppKit, SceneKit, and SpriteKit access the model across threads, then investigate whether Swift actors address the reported races and use-after-frees; done should mean the concurrency risks are resolved or clearly characterized.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
game-dev
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.