Please help me solve this Optimization issue.

Get help using Construct 2

Post » Sat Oct 03, 2015 9:05 am

I'm trying to recreate something similar to this dynamic interactive Star Wars RPG character sheet:

https://dl.dropboxusercontent.com/u/160 ... ble-v4.pdf

The main jist: You have a TRAIT score, and an ABILITY score. Whatever is the highest value is your total Green Dice pool. Then, a number of Green Dice are upgraded to Yellow dice based on the lower value.

Example Gif: http://i.imgur.com/1FAdGEo.gif

My first attempt at this has been successful- but with problems. When I go into debug mode the whole program idles at 31%+ CPU usage. Way too high.

My attempt link: https://drive.google.com/file/d/0B9bLcb ... sp=sharing

However, the weirdest part is the fix. Clicking on any part of the 'Strength' textbox drops it down to 1%. And then clicking on anywhere outside of the Strength box brings it right back up to 31%.

Even when you go into debug mode, and highlight the object from the left side panel, it even drops then! It's really confusing. Especially since I don't have any Events that are actively checking if the textbox is clicked or not. I have no idea.
B
20
S
5
Posts: 108
Reputation: 1,473

Post » Sat Oct 03, 2015 10:00 am

If you leave the debugger open in the inspector it does that, 1 ~30% but if you open the profiler tab, it remains on 0% ~1%

I am guessing it is due to all the values continuous being set, which gets updated in the inspector tab.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Sat Oct 03, 2015 2:14 pm

Yeah, the Debugger sucks up a bunch of system resources.

make a text object and then use a Set text "fps" to make your own FPS meter, and pulse it every 60*dt. This will be more accurate, but remember that the FPS meter you just made sucks up a little bit too.

system=>every 60*dt-----------TextObject.Set text "fps"

There are a couple of others you can use to help optimize, like getting the objects "count" and setting it to the text. I think there is even a CPU and GPU expression, but I really would not trust those due to hardware acceleration, and crappy web browser design. In Unity I have had some major heart breaks thinking my overhead was cool, but the meter i was reading was designed for CPU rendering only... It ignores the GPU completely. C2 might be the same way.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985


Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher, ketramtu18, XMatrix, Yahoo [Bot] and 8 guests