18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 17:04:52 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
jerrrrycho 4038f186d6 perf(utilities): the worker pool reads the core count once
worker_pool::capacity() called std::thread::hardware_concurrency() each time, and every job asks for it,
several times a frame. On Windows that call asks the system for the processor layout
(GetLogicalProcessorInformationEx) each time: 0.39% of the main thread on Tomaszewo. The count is read
once now; the machine doesn't change its cores while the simulator runs.
2026-12-02 07:04:31 +01:00
Hirek 7667e5b2ec fix: the bugs and vulnerabilities SonarCloud reports on PR #216 2026-11-07 22:11:08 +01:00
Hirek 1a42009dc2 perf(physics): performance.multithreading switches the work over many threads, which each job sizes by how much it has: the physics steps a thread per 128 vehicle steps, up to all logical cores 2026-10-23 21:07:05 +02:00
Hirek 60667588b5 perf(physics): the steps of the vehicle physics on many threads, in groups of vehicles which act on one another (performance.cpucores, 0: all cores) 2026-10-23 19:56:36 +02:00