Jump to content

Most efficient (Or fast) method


Recommended Posts

Hello everyone, my idea today is converting a JSON string (created from an array or the array itself depending on the method) to be constantly updated, To indicate the player's pressed keys.

My first thought was element data, the second one was triggerEvent.

Wich is the best and fastest method to do this? (Lowest latency / delay)

Greetz

HyPeX

Link to comment

The best way would to probably use element data, but not synch it with the server-side, unless you really need to.

You should make the table only store so much key presses, because the table could get very large, very quickly. ex. only store the last 100 buttons pressed.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...