YieldFrame: pause wasm environment till end of frame
This commit is contained in:
1 parent
13b61a6def
commit
03a8ae9a24
8 files changed
+160
-22
No files matched your search
@@ -7,8 +7,17 @@ use crate::go_builder::GoBuilder;
|
||||
mod go_builder;
|
||||
|
||||
fn main() -> VResult<()> {
|
||||
let builder = GoBuilder::new(&PathBuf::from("example_project"))?;
|
||||
let builder = GoBuilder::new(
|
||||
&PathBuf::from("example_project"))?;
|
||||
let wasm = builder.build()?;
|
||||
player::run_entry_point(&wasm)?;
|
||||
let mut executor = player::Executor::new(&wasm)?;
|
||||
|
||||
while executor.is_running() {
|
||||
println!("update started");
|
||||
executor.update();
|
||||
println!("update completed");
|
||||
executor.get_error()?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user