Intel XDK CW16 - Framerate boost with Intel FPS counter on.

Discussion and feedback on Construct 2

Post » Fri Apr 08, 2016 7:40 pm

I've been trying out the new Intel XDK update with CW16 and noticed an odd result where my game framerate improves when i enable the Intel FPS counter. I assumed that this would slow my game down but has had the opposite effect, to an extent where its running at 60 fps on old devices (whereas before it would be between 30-45fps).

I've tried creating my own FPS counter with Construct 2 and it didn't give a performance boost, so it's got something to do with Intel's FPS counter.

Does anyone know why the Intel FPS counter is giving such a boost? Has anyone else experienced this?
B
5
S
2
Posts: 126
Reputation: 876

Post » Fri Apr 08, 2016 8:22 pm

That sounds weird indeed. Are you sure the only difference is --show-fps-counter? Don't you add also --ignore-gpu-blacklist?
ImageImageImage
B
27
S
16
G
80
Posts: 1,021
Reputation: 44,761

Post » Fri Apr 08, 2016 8:59 pm

Maybe it's not telling the truth - can you add a text object fps indicator as well to compare them side by side?
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Fri Apr 08, 2016 9:09 pm

@BackendFreak Yes i did also add --ignore-gpu-blacklist, sorry forgot to mention that. I added the whole code from the following link into my intelxdk.config.additions.xml file, i didn't remove anything.

https: / / software.intel. com/en-us/forums/intel-xdk/topic/607958#comment-1861424 (remove spaces)

Since i added the code, i've experienced the FPS boost.

@Colludium I will try that and get back with results. Thing is i can tell that the performance improves with the Intel FPS counter as it runs very smooth, as it should with 60fps. With a text FPS counter that i used before, there was noticable lag at 30-45fps. So i can tell without comparing side by side that the performance increases.
B
5
S
2
Posts: 126
Reputation: 876

Post » Fri Apr 08, 2016 9:27 pm

Ah, yes - text objects are more demanding to render, so it might be better to render the display using a sprite font instead.
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Fri Apr 08, 2016 9:30 pm

But did you add --ignore-gpu-blacklist in both cases (with --show-fps-counter and without)? Or you added it only together with --show-fps-counter?
ImageImageImage
B
27
S
16
G
80
Posts: 1,021
Reputation: 44,761

Post » Sat Apr 09, 2016 1:04 am

@BackendFreak Yes I did add --ignore-gpu-blacklist in both cases, with and without the FPS counter. Framerate was at 60fps with the fps counter and 30-45 fps without fps counter.

What I haven't tried is show-fps-counter without ignore-gpu-blacklist. I'll try that and see what results I get.
B
5
S
2
Posts: 126
Reputation: 876

Post » Sat Apr 09, 2016 1:43 am

It's just not possible that something which consumes CPU (and fps counted consumes CPU) gives you a performance boost ;)... I'm curious about the final fix of your problem ;).
ImageImageImage
B
27
S
16
G
80
Posts: 1,021
Reputation: 44,761

Post » Sat Apr 09, 2016 4:24 pm

@BackendFreak My thoughts exactly, i was shocked to see that i was getting 60fps with the counter on, wasn't expecting it at all.

I've tried --show-fps-counter without anything else, no gpu blacklist or anything (apart from show fps counter, the only other thing i have in my 'intelxdk.config.additions.xml' is <preference name="debuggable" value="false" />).

I still get 60fps, so it definately has something to do with the Intel FPS counter. I should also mention that the along with the fps counter, it also shows the gpu raster is on.

It's really odd, i can't be the only one who is getting these results. Maybe someone from Intel would have better insight into this as i have no idea whats causing the boost.

For me now, the problem i face is how to get this performance boost without the FPS counter showing, as you don't want to release a game with the fps counter showing in the corner lol.


@Colludium I've tried with sprite fonts but still get around 45fps, not much difference from text object.
B
5
S
2
Posts: 126
Reputation: 876

Post » Sat Apr 09, 2016 6:16 pm

Just recompilled my game to test with --show-fps-counter, but I don't see any boost. It behaves normally, 60FPS most of the time and sometimes drops to 45 when there is really a lot of things going on.
ImageImageImage
B
27
S
16
G
80
Posts: 1,021
Reputation: 44,761

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 22 guests