Skip to content

Commit

Permalink
Fix events buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
x0k committed Feb 23, 2024
1 parent 1c23856 commit 32d20dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raylib_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ export class RaylibJsWorker {
}

const eventsBuffer = window.SharedArrayBuffer
? new SharedArrayBuffer(1024)
: new ArrayBuffer(1024)
? new SharedArrayBuffer(10 * 1024)
: new ArrayBuffer(10 * 1024)
this.eventsQueue = new EventsQueue(eventsBuffer)
this.eventsSender = {
[IMPL.GAME_FRAME]: (event) => this.worker.postMessage(event),
Expand Down

0 comments on commit 32d20dc

Please sign in to comment.