PoE2 - CPU lagg spikes - possible solution
Hey guys! I'm a programmer, yet it took me a while, but here is what I found out: **Cause:** \- Lagg spikes are caused by chat. Sounds impossible? Yeah, I know, but I will explain a probable cause. \- You get spikes whenever someone sends a message and you receive it. Even when your global/trade chat is "disabled". Press F1 to see. **Solution:** \- There is no sane way to properly disable the global/trade chats. \- You need to change the channel to something that is not used. Example: /global 300 /trade 300 Additionally you can use /cls command to clear the chat log. **Underlying issue:** \- This is a guess, as I didn't really decompile the code (c'mon, I have a life) - but from my experience I would say that PoE2 chat is maintained in a main thread. So basically whenever the communication happens, the main thread just pauses for Xms, which causes the spike. **Possible solution for GGG team:** \- Move the chat logic code to a seperate thread and ensure it doesnt somehow pause the main thread. I posted it already on [PoE2 forum thread](https://www.pathofexile.com/forum/view-thread/3786931), but I thought that it might be a good idea to spread the word, so other people can use this fix! GL & HF exiles!