mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
Added priority setting to eqstream to control cpu usage on thread more effectively
This commit is contained in:
@@ -594,10 +594,12 @@ int main(int argc, char** argv) {
|
||||
if (previous_loaded && !current_loaded) {
|
||||
process_timer.Stop();
|
||||
process_timer.Start(1000, true);
|
||||
eqsm->SetPriority(EQStreamPriority::Low);
|
||||
}
|
||||
else if (!previous_loaded && current_loaded) {
|
||||
process_timer.Stop();
|
||||
process_timer.Start(32, true);
|
||||
eqsm->SetPriority(EQStreamPriority::High);
|
||||
}
|
||||
|
||||
if (current_loaded) {
|
||||
|
||||
Reference in New Issue
Block a user