mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 21:58:22 +00:00
[Linux] Implement KSM Kernel Samepage Merging with Maps (#4601)
* KSM work * Windows fixes * Add KSM logging, cleanup * Cleanup raycast logging
This commit is contained in:
@@ -9,6 +9,19 @@ void command_loc(Client *c, const Seperator *sep)
|
||||
|
||||
auto target_position = target->GetPosition();
|
||||
|
||||
// check los benchmark
|
||||
BenchTimer timer;
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
zone->zonemap->CheckLoS(c->GetPosition(), target_position);
|
||||
}
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"CheckLoS benchmark took [{}]",
|
||||
timer.elapsed()
|
||||
).c_str()
|
||||
);
|
||||
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
|
||||
Reference in New Issue
Block a user