Help test a refactored Physics behavior

Discussion and feedback on Construct 2

Post » Fri Mar 09, 2012 8:16 pm

Well, it would only be faster when using a very large number of objects. The main difference should be that garbage collection pauses or stuttering are reduced in big games.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Post » Fri Mar 09, 2012 8:24 pm

Yeah, tried it with 500 objects, got the same frame rate. :/
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Fri Mar 09, 2012 8:27 pm

I noticed the size of the browser window seems to be slamming the framerate when physics is involved, even if the game is not set to fullscreen and there's one physics object in the layout. If the game window is 640x480 and the browser window is the same size, it's smooth. If the game window is 640x480 and the browser window is 1920x1080, the framerate is significantly lower. This seems to happen with both the old and new physics (it didn't affect the test I did). Does this happen for anyone else?Arima2012-03-09 20:29:47
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Fri Mar 09, 2012 8:31 pm

@Arima, that's odd because the Physics object doesn't have any dependency on the size of the window, it's a pure logic engine. Are you sure the same thing doesn't happen without the Physics behavior? 1920x1080 resolution can max out the fill rate on some graphics cards and cause slowdown.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Post » Fri Mar 09, 2012 8:32 pm

@Ashley, Any chance of adding more Box2D features such as prismatic joints?
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Mar 09, 2012 8:40 pm

Yeah, I used the same .capx, removed the physics and 60 fps at browser window 1920x1080 (game window 640x480). Add physics to one object, 18 fps. Resize the browser window with physics to 640x480, 60 fps again. Weird. :/Arima2012-03-09 20:44:09
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Fri Mar 09, 2012 8:53 pm

I should have tested the various browsers - that seems to only happen in chrome. I guess it's a chrome bug then.Arima2012-03-09 20:53:48
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Sat Mar 10, 2012 3:22 am

I tested with a project of mine that is physics intensive and I got a slightly more stable fps on Chrome. Also slightly better fps, but the precision is reduced and some objects penetrate each other more often. I perceived a general slower velocity in the movement and the distance spring joints seems slightly less stiff.

After reading Arima's post about the influence of the browser screen size in fps, I tried to test it and I confirm that the fps almost double when I resize the browser window to the game's size. On a second run the game stayed in a low fps no matter the size of the window nor the physics behavior version.

When I test physics for a long time I always get extreme slowdown after some time which makes it very inconstant and unreliable. Because it oscillates a lot the fps I'm not much confident in making a game that is heavily based on physics.
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Post » Sat Mar 10, 2012 4:37 pm

[QUOTE=Animmaniac]When I test physics for a long time I always get extreme slowdown after some time which makes it very inconstant and unreliable. Because it oscillates a lot the fps I'm not much confident in making a game that is heavily based on physics.[/QUOTE]
This is what the new Physics behavior is designed to solve... is it any better with this new version?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: glerikud and 10 guests