FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.39k stars 150 forks source link

The iteration limit in the UpdateTimedObservers. #644

Closed Jtree03 closed 7 months ago

Jtree03 commented 7 months ago

General Unity version: 2022.3.10f1 Fish-Networking version: 3.11.7R

Description https://github.com/FirstGearGames/FishNet/blob/4f126df78c450ca44afa2c40372599f00f89a08e/Assets/FishNet/Runtime/Managing/Server/Object/ServerObjects.Observers.cs#L73

We're experiencing issues with the Distance Condition due to the iteration limit.

If there are too many network objects, there is a problem of spawning(or despawning) too late. (like MMO-RPG)

It would be helpful to have an option in the observer manager that affects the number of iterations per tick.

FirstGearGames commented 7 months ago

I didn't get a chance to look at this yet. Do you no longer need?

On Mon, Apr 8, 2024, 8:10 PM JaeJun Jo @.***> wrote:

Closed #644 https://github.com/FirstGearGames/FishNet/issues/644 as not planned.

— Reply to this email directly, view it on GitHub https://github.com/FirstGearGames/FishNet/issues/644#event-12399732836, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGPJC3XGVMSLPQJIZ5K6EJ3Y4MWZFAVCNFSM6AAAAABF345AVCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGM4TSNZTGI4DGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

FirstGearGames commented 7 months ago

I realize you closed this out but in FishNet 4.2.0 I added a feature to adjust the max iteration time in the ObserverManager. image

Jtree03 commented 7 months ago

I was working around it myself, but thanks for adding it officially!