preliminary web worker support #4

Merged
merged 3 commits into from Nov 20, 2015

Conversation

Projects
None yet
1 participant
@taisel
Owner

taisel commented Nov 19, 2015

Entire emulator core is run in a web worker. It sends over audio and video to the main thread via transferable object postMessage-ing. Should be extremely useful for those without hardware accelerated canvas but have a multi-core CPU, as the canvas scaling operation can nom up a whole core without affecting the emulator.

preliminary web worker support
Emulator run in a web worker while A/V output stuff is run in the main
thread.
@taisel

This comment has been minimized.

Show comment
Hide comment
@taisel

taisel Nov 19, 2015

Owner

Still needs watchdog counters on the buffers. A bunch of event queue jamming occurring.

Owner

taisel commented Nov 19, 2015

Still needs watchdog counters on the buffers. A bunch of event queue jamming occurring.

@taisel

This comment has been minimized.

Show comment
Hide comment
@taisel

taisel Nov 19, 2015

Owner

Also the save import system needs some testing. It was rewritten into non-blocking asynchronous callbacks.

Owner

taisel commented Nov 19, 2015

Also the save import system needs some testing. It was rewritten into non-blocking asynchronous callbacks.

taisel added some commits Nov 20, 2015

require sharedarraybuffer support
We use it for sharing low latency buffer metrics.

taisel added a commit that referenced this pull request Nov 20, 2015

Merge pull request #4 from taisel/webworker
Eeeh, tell me how this goes...

@taisel taisel merged commit 0dd5a0f into master Nov 20, 2015

@taisel taisel deleted the webworker branch Nov 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment