Draw distance slider (#44)

Helps render performance on integrated GPUs.
Added render culling for baked compounds.
This commit is contained in:
Erin Catto 2026-07-03 20:26:19 -07:00 • committed by GitHub
commit 1bec63c9ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 200 additions and 8 deletions

View file

@ -160,7 +160,8 @@ void* MyEnqueueTask(b3TaskCallback* task, void* taskContext,
MyTask* t = AllocTask();
t->task = task;
t->taskContext = taskContext;
SubmitToThreadPool(t);
Scheduler* myScheduler = (Scheduler*)userContact;
SubmitToThreadPool(myScheduler, t);
return t;
}
@ -175,6 +176,7 @@ void MyFinishTask(void* userTask, void* userContext)
b3WorldDef worldDef = b3DefaultWorldDef();
worldDef.enqueueTask = MyEnqueueTask;
worldDef.finishTask = MyFinishTask;
worldDef.userTaskContext = myScheduler;
worldDef.workerCount = GetMyWorkerCount();
```