Skip to content

Commit

Permalink
fixed job profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Nov 3, 2024
1 parent 375b90e commit 718beae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/job_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,11 @@ LUMIX_FORCE_INLINE static void addCounter(Counter* counter, u32 value) {

LUMIX_FORCE_INLINE static void executeJob(const Job& job) {
#ifdef LUMIX_PROFILE_JOBS
profiler::beginBlock("job");
profiler::blockColor(0x60, 0x60, 0x60);
if (job.dec_on_finish) {
profiler::pushJobInfo(job.dec_on_finish->signal.generation);
}
profiler::beginBlock("job");
profiler::blockColor(0x60, 0x60, 0x60);
#endif
job.task(job.data);
#ifdef LUMIX_PROFILE_JOBS
Expand Down

0 comments on commit 718beae

Please sign in to comment.