C2 and Opera performance

Discussion and feedback on Construct 2

Post » Mon Oct 10, 2011 9:21 am

Hi everybody,

I am a new french earlier adopter of Construct 2. I would like first to apologize if my english is not very good (may be you will see some mistakes), and present me quickly.

I am Crystal Noir, 34 years old, and I follow Construct since his start. I use a lot of products to make what I like : games and multimedia programs :)

I am a user of C2, GM HTML 5, Monkey and AGK. I love test programs and languages so...

Now I would like to talk with you about a problem I have with Construct 2 and Opera, that I don't have with others html 5 like software (like GM HTML 5 or Monkey).

When I test a game made with Construct 2, in preview or "compiled game" with Opera, it runs very sloooow and has glitches. Don't have this problem with FF or chrome ou IE.

I ask a friend to test too, and he has the same things.

When I test a html 5 games made with GM HTML 5, I don't have this problem with Opera.

We all know that html 5 games won't be windows game (smooth etc..with sync) but, performances are bad when I run a game made with C2 on Opera.

Is there an issue or something about this between Opera and C2 ?

In general, Opera run html 5 correctly at the same as it's not the best to play with but here, it's very bad.

Thank's for help :)

Happy C2 !

B
11
S
2
G
2
Posts: 53
Reputation: 2,244

Post » Mon Oct 10, 2011 10:54 am

I tried running the Space Blaster demo in Opera 11.51 on Windows 7 and it runs OK. It's a little choppy in places, but perfectly playable.

Perhaps you could upload some demos side-by-side for us to try ourselves?

A fair bit of performance work has been done on the games, so they should not be unnecessarily slow. I'm tempted to say Opera just need to make their browser faster, but if you say other HTML5 games run just fine then I'm curious to see them running side by side for myself.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Mon Oct 10, 2011 11:06 am

ok I could try to upload something : but the two projects are not the same, I don't have the same on the two sides.

But here's an example :

EDIT : for samples, please see more posts under this one

that just concern opera, with other browser it's ok.

The pb is that it runs correctly on Opera but we can see the ball is very slow in his movement, very louuuud, but if you try on FF or Google Chrome that's ok ! (for me)CrystalNoir2011-10-10 16:26:06
B
11
S
2
G
2
Posts: 53
Reputation: 2,244

Post » Mon Oct 10, 2011 11:36 am

Are you using the Additive effect on those neon bricks? It looks nice but I think Opera isn't very good with effects, so tends to slow down.

I think Opera just needs to be faster. As you say, other browsers are fine. If you can make the same thing in both GM HTML5 and C2, and C2 is noticably slower, I'd be more worried... but as it is it just looks like Opera being slow with effects.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Mon Oct 10, 2011 12:17 pm

As fa as I'm concerned, I can't seem to run your GM HTML5 example in my FireFox 7.0.1.
It load (I have the loading scrolling bar) but from there the canvas stays all black, nothing is displayed.

I've tried GM's demos from their official website, their examples work (even if I find they have some heavyness to them, abit like C2 used to have before the improvement to the runtime during FF6 and the release of FF7).

I know the point of your topic is about Opera, I just thought I'd let you know there might be an issue with your GM's demo.Kyatric2011-10-10 12:18:10
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Oct 10, 2011 1:12 pm

I don't know I try to understand why espacially on Opera it's very very loud.

To answer I didn't use any effect. Neon bricks are just sprite I made before.

For the GM HTML 5 demo, it's a good test because this program display 250 sprites at the same time and forever :)

How I did mention on the GM html 5 forum, C2 is better and more smooth than him in general (I find it at the same as they says the invert), but espacially on Opera I can get it to be smooth like other browser.

Ashley, you did see it, other browsers are fine but with Opera it's very loud.

I'm going to try to make the same thing in GM HTML 5 and C2 to compare and I will post the result here.
B
11
S
2
G
2
Posts: 53
Reputation: 2,244

Post » Mon Oct 10, 2011 1:54 pm

Hello all :)

Here's my two examples. This sample is the same on GM HTML 5 and Construct 2 with the same calculation (for moves). We can compare.

This is a moving ball test with 20 sprites at the same times. Each balls have his own speed.

Launch each sample with Opera (and only Opera because it's this browser that cause pb for me) and let it run a minute and look at the ball.

You should see that with the C2 version, ball (and espacially ball with small speed, with them, we can look at it better), movements are very loud, with some glitches, or I don't know how to say that, but with the GM HTML 5 version, and Opera, the movement is more "smooth".

But as you can see (and test it) if you launch the C2 sample with other browsers like Firefox 7 or Google Chrome or IE that's perfect !

Now here's the samples (open it first with Opera) :

The Construct 2 version : Click here to see the C2 TestBall version

The Game Maker HTML 5 version : Click here to see the GM HTML 5 TestBall version

Thank you for help :)
B
11
S
2
G
2
Posts: 53
Reputation: 2,244

Post » Mon Oct 10, 2011 2:26 pm

That's odd - you're right, Opera seems choppier with the Construct 2 version.

However, in all other browsers, the C2 one runs a lot smoother than the GM one for me.

I'm not sure why either happens - both javascript engines appear to use the same mechanism to draw the screen. So I'm not even sure if it's a problem with Opera - even if we changed it we might end up with the other browsers not displaying so smoothly. Opera have about a 2% market share so I'm tempted to leave it - the big three (IE, Firefox and Chrome) seem to run it just fine...
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Mon Oct 10, 2011 2:28 pm

[QUOTE=Ashley] However, in all other browsers, the C2 one runs a lot smoother than the GM one for me.[/QUOTE]

Confirmed with FF 7.0
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Oct 10, 2011 3:57 pm

Yes, that's what I say up earlier. I made a reflexion on the GM HTML 5 forum because it's not an evidence to have something smooth with GM HTML 5 in general, as the same as they told me otherwise. I told them that C2 runs games very smooth on browser like FF or Google chrome, it 's not the same with GM HTML 5. It's not bad but...could be better.

I made this reflexion because I use both of them. But in the GM HTML 5 forum I just had answer like "your pc is outdated" or "it's not true"...

But, we have to confess that the C2 version has heavy slowdown on Opera.

[quote]Opera have about a 2% market share so I'm tempted to leave it - the big three (IE, Firefox and Chrome) seem to run it just fine...[/quote]

Ho please :) Could you try to see what happens ? you are right but I know that some people use Opera, it will be cool that C2 runs smoothly on all browser and a "plus" for C2 I think.

But I am happy that you have confirmed it.

When I tested C2, that works just fine but when I saw the result in Opera I said myself "oh no...." ^^ GM works just fine but we don't have something smooth like C2 except on Opera browser in fact.

And...congratulation for your beta, I think C2 is promising :)

Happy C2 !
B
11
S
2
G
2
Posts: 53
Reputation: 2,244

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests