Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental client performance improvement #1035

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Lilcooldoode
Copy link
Collaborator

Would like a bit of testing on this before been merged. During my testing running 2 clients side by side and running up and down with 1 player both clients stayed quite well in sync

Copy link

@Chriz-G Chriz-G left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I agree using a dictionary is a good idea, you should also maintain the object list aswell. You should use the dictionary for lookups and the list for looping.. the current way you are looping the dictionary values is going to cause excessive heap allocation and GC will kick in later down the line.. on the arti client we maintain both list and dictionary

My own idea. Nothing to do with Chriz's stupid suggestion.
@damianday
Copy link
Contributor

damianday commented Dec 8, 2024

Is the syncing improvement due to the Skip frame now being > 0 instead of 1 or the Move time change in GameScene?

@Lilcooldoode
Copy link
Collaborator Author

Is the syncing improvement due to the Skip frame now being > 0 instead of 1 or the Move time change in GameScene?

Combination of both

Causing huge memory heap allocations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants