fix: benchmarking code was off by a magnitude of 1
This commit is contained in:
parent
8eb5f3e3b8
commit
f7e474e1cf
|
|
@ -17,7 +17,7 @@ static void SetSimulatingButton(Clay_ElementId element, Clay_PointerData pointer
|
||||||
|
|
||||||
static void RandomizeFieldButton(Clay_ElementId element, Clay_PointerData pointer, intptr_t data) {
|
static void RandomizeFieldButton(Clay_ElementId element, Clay_PointerData pointer, intptr_t data) {
|
||||||
if (pointer.state == CLAY_POINTER_DATA_PRESSED_THIS_FRAME) {
|
if (pointer.state == CLAY_POINTER_DATA_PRESSED_THIS_FRAME) {
|
||||||
simulation::InitializeRandom(2, 30);
|
simulation::InitializeRandom(2, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ static void TaskBegin() {
|
||||||
static void TaskComplete() {
|
static void TaskComplete() {
|
||||||
std::scoped_lock lock{ tasksMutex };
|
std::scoped_lock lock{ tasksMutex };
|
||||||
if (--tasks == 0) {
|
if (--tasks == 0) {
|
||||||
SDL_Log("Generation Complete %lfs", (double)(SDL_GetTicksNS() - generationStartTime) * 0.0000000001);
|
SDL_Log("Generation Complete %lfs", (double)(SDL_GetTicksNS() - generationStartTime) * 0.000000001);
|
||||||
}
|
}
|
||||||
tasksChanged.notify_all();
|
tasksChanged.notify_all();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue