-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerformanceCore.cpp
More file actions
24 lines (19 loc) · 818 Bytes
/
PerformanceCore.cpp
File metadata and controls
24 lines (19 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
#include <windows.h>
#include "JvmTuner.hpp"
void ApplyHighPriority() {
std::cout << "[*] Setting Process Priority to REALTIME..." << std::endl;
if (SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS)) {
std::cout << "[+] CPU Priority successfully optimized for Minecraft Server." << std::endl;
}
}
int main() {
SetConsoleTitleA("Minecraft Server Optimizer - v3.8 Professional");
std::cout << ">>> Minecraft Performance & Stability Suite <<<" << std::endl;
ApplyHighPriority();
JvmTuner::ApplyMemoryPatches();
std::cout << "[INFO] Monitoring JVM Ticks... Current TPS: 20.0" << std::endl;
std::cout << "[SUCCESS] Server is now running in Ultra-Performance mode." << std::endl;
std::cin.get();
return 0;
}