mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 08:22:17 +00:00
Added priority setting to eqstream to control cpu usage on thread more effectively
This commit is contained in:
1 parent
54a7f73e50
commit
82e247f77b
6 files changed
+59
-14
No files matched your search
@@ -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