Grid based lighting/field of view

Discussion and feedback on Construct 2

Post » Sat Sep 24, 2011 9:07 am

Wow, not sure what you changed, but in your new example I'm getting a rock solid 60 FPS in FF 6, and that's with youtube and stuff open in other tabs... awesome!
B
7
S
2
G
4
Posts: 164
Reputation: 2,418

Post » Sat Sep 24, 2011 9:26 am

[QUOTE=Citnarf] Wow, not sure what you changed, but in your new example I'm getting a rock solid 60 FPS in FF 6, and that's with youtube and stuff open in other tabs... awesome![/QUOTE]

That's more like it!
B
21
S
7
G
2
Posts: 185
Reputation: 3,280

Post » Sat Sep 24, 2011 9:52 am

Bizarre. I'm getting 7 FPS ??!?? Can't explain why - nothing else running :(

Win XP SP3,AMD 64 6000+ 3.11 GHz, FF 6.0.2.

Checking Process Explorer, FF uses over 50% of CPU whilst running this latest example.zenox982011-09-24 09:58:56
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sat Sep 24, 2011 10:05 am

[QUOTE=zenox98] Bizarre. I'm getting 7 FPS ??!?? Can't explain why - nothing else running :(

Win XP SP3,AMD 64 6000+ 3.11 GHz, FF 6.0.2.

Checking Process Explorer, FF uses over 50% of CPU whilst running this latest example.[/QUOTE]

I've update the original post with a example to test the fps at different radi. Can you post your fps at each? (and browser)
B
21
S
7
G
2
Posts: 185
Reputation: 3,280

Post » Sat Sep 24, 2011 10:19 am

All tests are FF 6.0.2 - don't use any other browser.

Rad=4 65-60FPS
Rad=7 44-60 FPS
Rad=10 21-40 FPS
Rad=12 15-28 FPS
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sat Sep 24, 2011 10:27 am

[QUOTE=zenox98] All tests are FF 6.0.2 - don't use any other browser.

Rad=4 65-60FPS
Rad=7 44-60 FPS
Rad=10 21-40 FPS
Rad=12 15-28 FPS[/QUOTE]

Well, seems effects lower fps such as additive or xor.

The number of blocks which show the light effects the fps.

When all these are removed the fps stays high!

Don't know what to do about this unless I can find a less demanding way of rendering the light... Think I'll tidy it up and just release it and see if anyone else can come up with a good way to render...
B
21
S
7
G
2
Posts: 185
Reputation: 3,280

Post » Sat Sep 24, 2011 10:57 am

FF 6.02

Rad 1-7 = 60 FPS (random spikes up to 70/80 for some reason)
Rad 8   = 55 FPS
Rad 9   = 44 FPS
Rad 10 = 34 FPS
Rad 11 = 28 FPS
Rad 12 = 24 FPSCitnarf2011-09-24 10:58:52
B
7
S
2
G
4
Posts: 164
Reputation: 2,418

Post » Sat Sep 24, 2011 12:20 pm

[QUOTE=Citnarf] FF 6.02

Rad 1-7 = 60 FPS (random spikes up to 70/80 for some reason)
Rad 8   = 55 FPS
Rad 9   = 44 FPS
Rad 10 = 34 FPS
Rad 11 = 28 FPS
Rad 12 = 24 FPS[/QUOTE]

Here is an alternative way of showing shadows and light hope this works faster. Still a few more ways to optimise I hope...
B
21
S
7
G
2
Posts: 185
Reputation: 3,280

Post » Sat Sep 24, 2011 12:33 pm

That one gives me 28-60 FPS.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sun Sep 25, 2011 12:02 am

rad 7 = 34-38 fps
it won't let me change the radius on my laptop
and the 'pretty' test runs at 40-44 fps.
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 16 guests