Ticket #95 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

Make updates happen less if the server is under high load

Reported by: mike Owned by: mike
Priority: normal Milestone: alpha-test
Component: server Version: 0.2
Keywords: Cc:
Estimated Effort: 2 days Platform: All
State: Relative Size:

Description

Feature

When the server is under high load, updates should happen less often. This should go for both the clients and remote servers.

Change History

Changed 6 years ago by mike

  • status changed from new to closed
  • resolution set to fixed

Solution

Added some functions in Server class to figure out the average iterations per second over the last 40 iterations or so. Also made some functions to get the ips/desired ips for a load percentage (0%= full load).

Added code to odeArea to only update a certain number of objects depending on the load of the server. Similarly, caused odeRealm to only check collision/iterate a number of times that is dependant on the load.

Finally, added load as one of the parameters to determining if sending an update to a client was a good idea or not. (PlayerView?)

Changed 4 years ago by mike

  • milestone changed from beta-test to MV3D-0.32

Milestone beta-test deleted

Changed 4 years ago by mike

  • milestone changed from MV3D-0.32 to alpha-test

Setting the milestone back

Note: See TracTickets for help on using tickets.