C2 Performance, let's be honest...

Discussion and feedback on Construct 2

Post » Mon Feb 17, 2014 7:04 pm

Over the last few updates, there have been a good few topics regarding C2 performance issues, most have ended up looking like a "how do I" thread with anyone questioning C2 performance as not doing something right, and it's their lack of knowledge that's at fault...

So after the warning shot of Ashley's "upgrade from XP" blog entry, I started using My windows 7 PC to develop on, looking forward to all it's goodness...

You guessed right, worse performance, now I'm the first to admit that my PC's are not exactly new, but come on less than 200 sprites and a few backdrops with 4 gig ram and 256 graphics card!

We are constantly told it's gonna get better on mobile that is true, but 2D performance on PC won't be sky rocking anytime soon, video cards are marketed and developed to pushing more polygons, not more 2D sprites.

I think most devs on here are blind to the real capabilities of C2 as they are running fast gaming spec PC's, many still struggle to push 60 FPS in a game that a Sega mega drive could breeze...

After moving from Construct Classic, I have still to see a game that really shows the capabilities of C2

Maybe Java script is just not upto the job, or maybe we are just making excuses...

Fire away...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,270

Post » Mon Feb 17, 2014 7:17 pm

There is a quite a huge difference with "old" PCs ...

You ran windows XP, what was it, a Pentium 4?

Mind you, windows xp is well over 10 years old, and its publisher released 4 newer operating systems which was suposed to replace XP.

Also, does your old video card support webgl ?

256mb video memory is rather small.

4 gig memory, in an old PC, all the same modules ? what speeds ?
These differ greatly.

Windows 7 has a LOT of eyecandy crap inside (taking up video performance)... perhaps disable all that before you run a game ;)

I consider a relative old computer something from ike 2 or 3 years ago.
By now that would at least be a dual core system.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Mon Feb 17, 2014 7:18 pm

I was using a $280 work laptop and never had any performance problems. The only problem I have ever run into is with an artillery game with destroyable terrain prototype that had tons of blocks to check collisions on. I was pleasantly surprised, that all my projects ran fine on android and iOS devices too. If you want to post your capx I(and probably others) will be able to offer specific advice for improving performance.
B
26
S
8
G
2
Posts: 33
Reputation: 3,645

Post » Mon Feb 17, 2014 7:33 pm

@lennaert Both systems are Dual core, The XP system has better performance, with virtually same spec as the windows 7 PC...

256 video ram is small agreed, My point is, it should be enough to run a game that would probably embarrass a 16 bit SNES, with it's massive 64 kB video RAM...

Edit, both video cards support WebGLPixel perfick2014-02-17 19:37:04
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,270

Post » Mon Feb 17, 2014 7:34 pm

I do think there is some problem with C2 (or WebGL?, somewhere anyway) in terms of performance. I tried running Autorunner (included in C2) on my Asus Transformer Prime TF701, which has a Tegra 4 chip. Needless to say, I can only get 30 fps on it unless I change the High DPI setting to off. Clearly this shouldn't be the case, I can drive much more demanding games than Autorunner on this device (and I didn't make Autorunner, so I couldn't have done something wrong). It does run smooth on lower resolutions though. I contacted Scirra bout this so I'm curious to see what the response will be, but for now I'm running at low resolutions.

I get similar effect when I make my browser window large on an older (5 year old) desktop that was top of the line at the time of purchase (but obviously outdated now)
B
11
S
2
G
3
Posts: 283
Reputation: 1,968

Post » Mon Feb 17, 2014 7:37 pm

2D games are rendered the same way 3D games are, as polygons with textures on them, so increasing 3D performance improves 2D performance as well. They're really the same thing. The amount of polygons a card can push isn't the whole issue - there's a bunch of other things like pixel fill rate and shader performance to take into account too, all of which continue to improve at quite a fast rate.

The video card isn't the total issue, either, as things like physics can cause the CPU to be what holds up the next frame.

There's compilation time, where a game is being compiled in the background at start, so it can take a few seconds before the game is running optimally while it's compiling in the background. My current game requires about 10 seconds before the framerate gets smooth.

There's also the issue that chrome and node webkit are currently on version 32, which has performance problems on some pcs as it's reverting to software rendering when it shouldn't. Chrome when fullscreened has a framerate in single digits on my machine currently, but chrome 33 should fix it. By switching to windows 7, you're probably using different video card drivers, which might have affected the performance, or caused your card to now be blacklisted when it wasn't before.

Anyway, in my experience and testing, C2 actually rendered faster than CC, but it has been a while since I checked. Event performance I tested CC to be 1.5-3x faster than C2, but in general I don't need that speed (though I would certainly like it).

As for the other problems with previous versions of C2 being faster, I can't comment because I haven't noticed a difference, though that doesn't mean there hasn't been one - the game I'm currently working on doesn't have very many sprites on screen at once. I don't have nearly the most powerful computer either, it's an AMD 4400+ with an Nvidia 9800gt. Have you been able to isolate the issue with a .capx?Arima2014-02-17 19:39:57
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Mon Feb 17, 2014 7:39 pm

[[email protected] perfick] lennaert Both systems are Dual core, The XP system has better performance, with virtually same spec as the windows 7 PC...

256 video ram is small agreed, My point is, it should be enough to run a game that would probably embarrass a 16 bit SNES, with it's massive 64 kB video RAM...[/QUOTE]

A bad comparrison though, a ness was hardware based with the program ran directly from a chip.

And it didnt had to mainain a system that requires a minimum of 1500mghz to decently run the operating system. (whereas XP only requires roughly 200mghz) Not to mention supporting the eyecandy in the backgorund.

Also, the operating system needs to run the browser too.

I think its far more likely that your windows 7 is not living up to your expectations, and you prefer to blame it on the perfromance of cs2.

Perhaps check out the video requirements for windows 7.

Grafisch DirectX 9-device with WDDM 1.0 or higher

Something tells me your 256mb video card is not up to par ;) (or barely)lennaert2014-02-17 19:40:51
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Mon Feb 17, 2014 8:35 pm

@arima I realise that when it comes to rendering, placed in a petri dish, C2 performs well, it's when you ask these objects to do something other than look pretty that things seem to go a bit pear shaped...

For simple games C2 performs great, but do fear for anyone developing anything remotely complex, when it reaches the end user with far lower spec than the Dev developed and intended it to be played on...

The chrome 32 update really has thrown the spanner in the works, and yes one of the cards was blacklisted, overcome with chrome//flags

As far as I am aware windows 7 supports and uses hardware rendering for 2.5D displays (desktop windows), and XP does not, so if what you say is true, I'd have expected increased performance on Windows 7, but, I am not 100% up on all the Tech regarding video cards, so bow to Your better knowledge on that...

To be honest My game is still performing as good as, if not better than most similar games, I have seen or played on the forums, it's just about acceptable, but I continue...

Looks like I'm as guilty as everyone else, when it comes to dropping My expectations as I add more game play elements...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,270

Post » Mon Feb 17, 2014 8:40 pm

@lennaert again, Your probably right, but there are millions of similar or even lower spec systems out there...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,270

Post » Mon Feb 17, 2014 9:12 pm

[QUOTE=Pixel perfick]For simple games C2 performs great, but do fear for anyone developing anything remotely complex, when it reaches the end user with far lower spec than the Dev developed and intended it to be played on...[/QUOTE]

Welcome to the world of developing for a target platform with a variable spec. :/ Pro devs working with c++ have this problem, too, it's the reason there's a listing for minimum system requirements for games. At some point you have to make a decision whether your going to go for the game you want or scale it back to hit older computers. It might be possible to simply have something like a setting in the options menu so people can turn off shaders or something if their computer can't handle them to try to accommodate both.

[QUOTE=Pixel perfick]As far as I am aware windows 7 supports and uses hardware rendering for 2.5D displays (desktop windows), and XP does not, so if what you say is true, I'd have expected increased performance on Windows 7, but, I am not 100% up on all the Tech regarding video cards, so bow to Your better knowledge on that...[/QUOTE]

2.5D displays? I don't know what you mean by that. There's another potential performance issue with win 7 - are you using aero or the old windows style? If you're using the old windows style, then you're not getting hardware acceleration with windows' window manager, which hurts performance. Also, as others have said, win 7 is more complex and has higher requirements than win XP, so it just might be requiring more CPU/GPU time to the point were it starts negatively impacting other applications. 256 mb for a card is very low - you also might be having problems with running out of VRAM, which means the os and game would be competing for that VRAM, and moving textures over the system bus is a slow process.

I understand your frustration, though. Performance seems like a simple concept, but it turns out to be this crazy complex thing. That's one of the reasons ATI came up with its mantle API recently - to help optimize some of the places where the CPU and GPU are just sitting around waiting for instructions on what to do because of bottlenecks from the os and such.Arima2014-02-17 21:14:07
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests