Amethyst: [BUG] NetworkBundle cause HUGE CPU usage

Created on 6 Dec 2019  路  2Comments  路  Source: amethyst/amethyst

Description

Whenever I include NetworkBundle into the game it will cause significant CPU usage. (Jump from 3% to 40%-60%).
Changing framerate strategy does not fix the issue nor does changing the max framerate to 1.

Reproduction Steps

  1. Setup a basic amethyst project
  2. Include NetworkBundle to the game
  3. Run the game

Screenshots and Logs

With NetworkBundle
With <code>NetworkBundle</code>
Without NetworkBundle
Without <code>NetworkBundle</code>

Your Environment

Tested OS: Windows 10, Linux.
Rust version: 1.39.0
Amethyst Version: 0.13.2

needs triage bug

Most helpful comment

No high CPU usage issue remain on the master branch (Have tried on both TCP and UDP)

All 2 comments

@oOBoomberOo I'm curious if you are seeing a similar issue on the master branch of amethyst. We have significantly overhauled how the networking library works and will be changing in a near future release. Might be worth trying out.

No high CPU usage issue remain on the master branch (Have tried on both TCP and UDP)

Was this page helpful?
0 / 5 - 0 ratings