Make benchmark work on native

This commit is contained in:
2026-11-23 20:01:25 -03:00
parent 90dd86b336
commit ced27d3400
5 changed files with 21 additions and 17 deletions
+3 -2
View File
@@ -14,8 +14,9 @@ export interface Platform {
restart(url: URL): void;
// calls frame once it's time for the next frame, with the time like performance.now()
request_frame(frame: (time: number) => void): void;
// calls shown when the game can be seen again after being hidden, there are no frames meanwhile
on_shown(shown: () => void): void;
// calls shown when the game can be seen again after being hidden, there are no frames meanwhile. returns what
// stops calling it
on_shown(shown: () => void): () => void;
// what's remembered from one time to the next, like the servers whose mods the player trusts. it can throw, like a
// browser's in a private window
storage: Pick<Storage, "getItem" | "setItem">;