Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Entityhurt and Playerhurt lagg #48

Open
dretax opened this issue Jul 30, 2014 · 5 comments
Open

Entityhurt and Playerhurt lagg #48

dretax opened this issue Jul 30, 2014 · 5 comments

Comments

@dretax
Copy link
Contributor

dretax commented Jul 30, 2014

Giving a note for everyone to make sure to check into the event cause of the shotgun, or any automatic rifle which occurs lagg cause of that.

@balu92
Copy link
Contributor

balu92 commented Jul 30, 2014

just a heads-up, with the old jint:

function On_EntityHurt(he){
    UnityEngine.Debug.Log(he.Attacker.TimeOnline);
}

gave me ~100 ms diff for each pellet with a shotgun (on GSP server), but that was probably cuz there was only 1 engine for all the plugins, and Plugin.Invoke() called engine.Run(Code) every time

@Riketta
Copy link
Contributor

Riketta commented Jul 30, 2014

I think better create new hook "OnShoot" or maybe "OnShotgunShoot" and mark all bullets with unique id (id of this shot)

-----Original Message-----
From: "balu92" [email protected]
Sent: ‎7/‎30/‎2014 13:01
To: "fougerite/Fougerite" [email protected]
Subject: Re: [Fougerite] Entityhurt and Playerhurt lagg (#48)

just a heads-up, with the old jint:
function On_EntityHurt(he){
UnityEngine.Debug.Log(he.Attacker.TimeOnline);
}
gave me ~100 ms diff for each pellet with a shotgun (on GSP server), but that was probably cuz there was only 1 engine for all the plugins, and Plugin.Invoke() called engine.Run(Code) every time

Reply to this email directly or view it on GitHub.

@balu92
Copy link
Contributor

balu92 commented Jul 30, 2014

did another test with jint2 and ironpython, the differences between hooks are ~5-15 ms, which is way better, but still every shot/pellet creates it's own event which calls "Fougerite.Player.FindByPlayerClient", etc...

@mikecrews
Copy link
Contributor

Instead of searching the Server.Players dictionary, if we have the playerclient, why not instance a Fougerite.Player with it and pass that?

@sir-wabbit
Copy link
Contributor

Or at least we could make Server.Players an actual dictionary and not a
list :)

On 1 August 2014 03:53, Michael Crews [email protected] wrote:

Instead of searching the Server.Players dictionary, if we have the
playerclient, why not instance a Fougerite.Player with it and pass that?


Reply to this email directly or view it on GitHub
#48 (comment).

Alexander Konovalov
email: [email protected]
skype: alex.knvl
icq: 431935323

mikecrews added a commit that referenced this issue Jul 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants