Replies: 1 comment 2 replies
-
v86 is polling for browser events, basically: while(true)
{
let start = Date.now();
while(Date.now() - start < 1)
{
run_some_instructions();
}
// allow keyboard/mouse/etc. events to be called
// see https://github.com/copy/v86/blob/51bf5a63dcc34f806cdc3c182c383d770e76e0cf/src/main.js#L141
yield_to_browser();
} A better implementation could run the cpu work in a worker and communicate with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to run https://rtic.rs in wasm and I need some way to have interrupts or preemption in general. You've solved that problem to make operation system's, can you then advice me on that please?
Beta Was this translation helpful? Give feedback.
All reactions