Hitscan weapons

Get help using Construct 2

Post » Thu Jan 02, 2014 3:05 am

Hello again! I created a simple ray system in Construct 2, but the problem is that, even at short ranges (2048 pixels), it uses a good 16%-ish of my CPU. I know this value is approximate, but I still feel a bit 'ehhhhh' about the whole thing. Is there anyway I can improve the performance at all, or am I forever doomed?

CapX File (Includes a bunch of other stuff like a console etc): https://dl.dropboxusercontent.com/u/21499454/support/hitscans.capx
B
28
S
7
G
5
Posts: 202
Reputation: 5,285

Post » Thu Jan 02, 2014 4:02 am

For me, running the debugger with node-webkit, at the start of the layout CPU spikes to about 7 - 10% for around 15 seconds before dropping. Then after that during normal gameplay just sitting still shooting the ray it's at 1% or lower. When moving around and shooting it goes up to 1.5 - 2%.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986


Return to How do I....?

Who is online

Users browsing this forum: AmpedRobot, beohs, Yahoo [Bot] and 11 guests