There was an error while loading. Please reload this page.
1 parent c8dc2df commit e253c99Copy full SHA for e253c99
2 files changed
source/scheduler/scheduler.cpp
@@ -39,6 +39,9 @@ bool Scheduler::tick() {
39
void Scheduler::clear() {
40
m_near_events =
41
NearEventsStorage(M_MAX_COUNTSORT_CAPACITY.value_nanoseconds());
42
+ std::priority_queue<std::unique_ptr<Event>,
43
+ std::vector<std::unique_ptr<Event>>, EventComparator>()
44
+ .swap(m_far_events);
45
m_current_event_local_time = TimeNs(0);
46
}
47
source/scheduler/scheduler.hpp
@@ -53,7 +53,7 @@ class Scheduler {
53
TimeNs get_current_time();
54
55
private:
56
- static constexpr inline TimeNs M_MAX_COUNTSORT_CAPACITY = TimeNs(50'000);
+ static constexpr inline TimeNs M_MAX_COUNTSORT_CAPACITY = TimeNs(10'000);
57
58
// Private constructor to prevent instantiation
59
Scheduler()
0 commit comments