I have created a multiplayer game that uses webRTC for communication.
It sends 4.8 KB data every second.
Can sending this data cause high CPU usage?
I'm wanted to run the game in browser so i used electron just to run the game.
But before any data sending to other client the electron app uses about 0.1% (on windows)
and 1.7% (on linux)
of cpu (4-core , i5 3570)
but as soon as i start sending data the cpu usage spikes 4.5 % (on windows)
and (25% on linux)
.
Linux - (Ubuntu 18.04)
CPU - i5 3570
So what might be the reason of such variation in CPU usage of windows and linux. Why CPU spike on sending data.