[Solved!!] Janking It ...it was my f.lux app

Discussion and feedback on Construct 2

Post » Tue Jul 05, 2016 9:56 pm

Hey out there. Look, I'm having janking problems with my sprite when trying to move it left and right. Sounds like a personal problem, I know. But here me out.

I stopped trying with my main game scene and thought I'd test it out with a simple scene. So here's what I do:

I create a new default scene, the first one in the list. I'm using the newest beta, r230 64-bit.
I create a tiled background. Apply a solid behavior, and make it be the ground.
I create a sprite 75x100. Apply a platform behavior, and leave everything as default.
I run the game and move my sprite forward.

Now, every couple seconds, the sprite janks, like it's lagging or something. Then it runs smoothly, then janks again. Does anyone have any idea why it would do this? Perhaps a driver issue? My com has 12gb of RAM, and i7 processor, and Nvidia GPU.. I wouldn't think it's that. I'm getting like 60fps when moving the sprite, yet I have this jank.

What gives? Am I doing it wrong here? Thanks ahead of time for anyone who may have an answer!
Last edited by Bleenx on Wed Jul 06, 2016 8:48 pm, edited 1 time in total.
B
25
S
12
G
11
Posts: 260
Reputation: 7,923

Post » Wed Jul 06, 2016 1:58 am

Hey there,

I'm afraid your comp is just not powerful enough. Lol, just kidding.

Have you noticed any jank playing other html5 games? If so upgrade your browser to the latest chrome or Firefox.
ImageImage
B
130
S
23
G
7
Posts: 1,078
Reputation: 13,280

Post » Wed Jul 06, 2016 3:02 am

Thanks for the reply but I'm using nw.js, the newest version and updated browsers. It didn't seem to happen before when creating things until now. It does it no matter what I create. I'm losing ma miiinnd!!
B
25
S
12
G
11
Posts: 260
Reputation: 7,923

Post » Wed Jul 06, 2016 3:31 am

No worries.

Does it happen when you launch it in a browser instead? If not then you might be able to just use a slightly older version of NW.js. If you can I would also try and test it with another computer.
ImageImage
B
130
S
23
G
7
Posts: 1,078
Reputation: 13,280

Post » Wed Jul 06, 2016 6:13 am

Turn off pixel rounding if you are trying to make a pixel platformer.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Post » Wed Jul 06, 2016 2:31 pm

I've tried in a browser and it's the same thing. It did the jank in old nw.js too right before I updated it. Also, it's a sprite png of a 3d model I rendered, so it's not pixel. I may have to reformat this computer or something because I don't remember seeing this odd stutter when I first installed c2 months ago.
B
25
S
12
G
11
Posts: 260
Reputation: 7,923

Post » Wed Jul 06, 2016 2:45 pm

Are the built-in examples also causing this janking?

Can you provide a simple .capx that janks for you so we can test it?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,541
Reputation: 60,426

Post » Wed Jul 06, 2016 3:23 pm

zenox98 wrote:Are the built-in examples also causing this janking?

Can you provide a simple .capx that janks for you so we can test it?


The platformer template didn't seem to jank at first I guess.. it's hard to tell. It kinda does when you first move it. I put a sprite in place of the default square sprite in the template and it janks every two seconds or something like that. I uploaded it for you to see. If it doesn't jank or stutter or whatever you call it every couple seconds when moving left and right, then it's on my end.

https://drive.google.com/file/d/0BxVOSl ... sp=sharing
B
25
S
12
G
11
Posts: 260
Reputation: 7,923

Post » Wed Jul 06, 2016 3:57 pm

Steady at 8.3 ms/frame.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Jul 06, 2016 5:47 pm

I'm getting between 52 and 58 fps at around 17 ms/frame, sometimes dipping to 40fps when moving the character left and right. Using NW.JS and Firefox in debug to test.
B
25
S
12
G
11
Posts: 260
Reputation: 7,923

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Ashley and 4 guests