Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
node --check render360-webgpu-play.mjs
node --check render360-browser-thread-scheduler.mjs
node --check render360-browser-ppc-session.mjs
node --check render360-browser-title-runtime.mjs
node --check storage/game-storage.js
node --check settings/app-settings-store.js
node --check library/game-library.js
Expand Down
5 changes: 4 additions & 1 deletion render360-browser-title-runtime.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export async function handoffXboxIsoBrowser({
primaryThreadContext=0,
primaryThreadStackSize=0x80000,
primaryThreadFlags=0,
schedulerQuantum=4,
...options
}){
if(!core?.exports)throw new Error('Render360 package/XEX core is not initialized');
Expand Down Expand Up @@ -264,7 +265,9 @@ export async function handoffXboxIsoBrowser({
try{
ppcSession=await createPersistentPpcSession({bootstrap:runtime,clearContext:true});
if(!ppcSession.functionCount)throw new Error(`No callable generated WASM function was registered for title entry 0x${(result.entry>>>0).toString(16)}`);
threadScheduler=await createGuestThreadScheduler({bootstrap:runtime,session:ppcSession,maxSlicesPerPump:1});
const requestedQuantum=Number(schedulerQuantum);
const maxSlicesPerPump=Number.isFinite(requestedQuantum)?Math.max(1,Math.min(4,Math.floor(requestedQuantum))):4;
threadScheduler=await createGuestThreadScheduler({bootstrap:runtime,session:ppcSession,maxSlicesPerPump});
primaryThread=threadScheduler.createThread({entry:result.entry>>>0,context:primaryThreadContext>>>0,stackSize:primaryThreadStackSize>>>0,flags:primaryThreadFlags>>>0});
schedulerReport=await threadScheduler.pumpOnce({maxSlices:1});
if(!schedulerReport.slices.length)throw new Error('Native guest-thread scheduler found no runnable title entry');
Expand Down
Loading