Search found 21 matches

by jdv145
19 Nov 2013, 12:27
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

Hi, thanks for the example. I've tested it using a Chrome client under MacOSX 10.8 and a Chrome client on Windows 8. Everything works as expected, the lag is stable at around 1.8ms Additionally we test on Windows XP and Windows 7 (32bit) with the same results, always using Chrome. I am not sure if ...
by jdv145
19 Nov 2013, 05:59
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

Just wanted to add that a simple test sending 50 messages/sec. and receiving the same amount of from the server side, shows no changes in latency. In any case, if you still can't figure what the problem is send us the repro-case and we'll take a look. Thanks Thanks for testing. Your results do matc...
by jdv145
17 Nov 2013, 15:48
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

A new post since the other one gets to large otherwise... I've created a 3rd socket-server in dart for comparison. So now i have 3 running on the server, - smartfox : latency is jumping - one made in node.js : latency always low - one made with dart.: latency always high From what i have seen in the...
by jdv145
16 Nov 2013, 21:14
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

I might have found the issue, but i'm very much interested about what you guys think. Although the problem is not yet solved, i'm a little bit optimistic about my findings. I used wireshark to monitor the computer on which smartfox is running. Im not a pro in packetsniffing (not by a long shot), so ...
by jdv145
16 Nov 2013, 16:56
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

Hi. Can you test the lag results with all the major browsers? Chrome, Firefox, IE 10 or 11, Opera and maybe Safari? Thanks So far i have tested the newest chrome and firefox and i just used IE10. Although i think there is a discernible difference, its not much more then say 10%. This can be explain...
by jdv145
15 Nov 2013, 21:40
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

The basic problem is that with a minimal workload the latency is far to high. I don't experience any problems now (the game i'm playing is tetris), but with the delays i'm seeing i am sure this will be problematic for some games that will be created in the future (this is also one reason i made my o...
by jdv145
15 Nov 2013, 11:45
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

I'm not sure if i should add a 3rd edit or add a new post.... but since there is some new stuff i tried a guess a new post is in place. I couldn't make much sense of the jumpiness of the inbuild ping-pong so i added a latency meter myself. Actually i did it twice, one latency timer sends a message t...
by jdv145
14 Nov 2013, 18:51
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

Re: High latency when playing a game

Hi, One thing that directly came to my mind, can you check if the browser is firing multiple times the keypress event when a key is down, instead of firing it ony once each time you press it? I'd also suggest you to check the system queues and the server's load. Cheers I was not detailed enough wit...
by jdv145
13 Nov 2013, 15:35
Forum: SFS2X HTML5 / JavaScript API
Topic: High latency when playing a game
Replies: 36
Views: 24127

High latency when playing a game

I'm having a problem with the latency going through the going through the roof when playing an 1v1 game. First my configuration: I'm using two independent chrome browsers to connect to smartfox, which is run on an other computer inside my LAN. Normally, during non-gameplay, the latency is between 1-...
by jdv145
22 Oct 2013, 15:26
Forum: SFS2X HTML5 / JavaScript API
Topic: Issues in the javascript library
Replies: 9
Views: 6693

Re: Issues in the javascript library

I might have found an other bug. in the function SFS2X.Controllers.SystemController.prototype._fnInviteUsers there is a line a = new SFS2X.Entities.Invitation.SFSInvitation(c, sfs.mySelf , a[SFS2X[...] which i guess should be a = new SFS2X.Entities.Invitation.SFSInvitation(c, this._sfs.mySelf , a[SF...
by jdv145
18 Oct 2013, 14:41
Forum: SFS2X HTML5 / JavaScript API
Topic: Issues in the javascript library
Replies: 9
Views: 6693

Re: Issues in the javascript library

The toArray() method is called on the object userVar which is a SFS2X.Entities.Variables.SFSUserVariable. I still don't get what the problem is. The thing is that when using for(b in this._userVariables) You expect the b to go like "0", "1", "2", ... etc for every user...
by jdv145
18 Oct 2013, 13:09
Forum: SFS2X HTML5 / JavaScript API
Topic: Sometime smartfox adds quotes arround my uservariable
Replies: 4
Views: 4185

Re: Sometime smartfox adds quotes arround my uservariable

Thanks for your explanation. Now i at least understand why whitespaces 'protect' my json string :D
by jdv145
18 Oct 2013, 12:58
Forum: SFS2X HTML5 / JavaScript API
Topic: Issues in the javascript library
Replies: 9
Views: 6693

Re: Issues in the javascript library

If you had used prototypes on Array's you would have seen the error also, so i assumed you guys didn't. Just declare one and run the SetUserVariablesRequest example from the api and you will see what i mean. Part of the stack trace below: TypeError: Object function (num, val) {[*removed*]} has no me...
by jdv145
17 Oct 2013, 12:40
Forum: SFS2X HTML5 / JavaScript API
Topic: Sometime smartfox adds quotes arround my uservariable
Replies: 4
Views: 4185

Re: Sometime smartfox adds quotes arround my uservariable

Thank for your speedy response. I try to be a little more clearer this time, but i thought maybe you guys could have guessed the cause of it by just mentioning some stray quotes. Anyway this is my code: var obj = {k1 :'some val 1', k2: 'some val 2'} var str = JSON.stringify(obj); console.log("=...
by jdv145
17 Oct 2013, 11:37
Forum: SFS2X HTML5 / JavaScript API
Topic: Issues in the javascript library
Replies: 9
Views: 6693

Re: Issues in the javascript library

I agree. If i wasn't busy working to keep a deadline i wouldn't have done a fix myself, but would have posted it immediately. My change was only temporary, to keep the work going, and consisted only of a wrapper function on the object on which the loop is on. The only thing my fix did was to copy th...

Go to advanced search