rho's Forum Posts

  • Hi,

    I've been developing a project that has grown to a number of event sheets holding functions. call it my own problem, but I lose track of which event sheet is holding which functions.

    it would be nice if you could right-click or something that would let you jump from the instance to the code behind the instance.

    I know I could name all my instances properly, but a good IDE should help you with things like this as projects get bigger.

    R

  • hi all,

    I agree with the original poster as I also use a laptop.

    The request was about the user-interface which requires a lot of mouse action. it would be nice to have a way to type in the EXISTING functionality when you don't have a good mouse option. For me, and I think for the original poster, it was not a comment on the engine or its architecture.

    For me, a text entry option with autocomplete for the objects and variables would be really nice.

  • you can update the saved state if it is stored in a global variables. For example you could set up a system-tick function that every 10 seconds updates things. the trick is knowing how you want the layout to be changed when the user isn't there.

  • Hi,

    This is not a coding question but rather a request as the best way to setup a development environment for client-server interactions.   

    So I'm working on programme that will be using a lot of server resources to pull down configuration files, large images and also to interact with some APIs. However under C2, you will quickly run into the cross-browser issue.

    At the moment I am exporting and uploading to my remote server and testing that way. However I was wondering if there was a better way.

    I have considered putting a dropbox onto the remote server and allow it dynamically update that way, but there are issues with that.

    I could use a XAMPP type setup and launch a testserver locally with appropriate tools?

    Has anyone any advice?

    Rho

    PS: I know this is not a C2 issue but it'd be really cool if it had a way to facilitate this.

  • I'm not a SCIRRA expert, but I think C2 should be easily capable of doing what I saw in that youtube. much of what I've done as testcases maps to what your functionality is. I'm not sure whether C2 is optimal but imho it's definitely doable.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I get this a lot on internet explorer, you need to force a refresh. Hit F5. It's about browser caching.

    In cases where you might be using XML files, I find that they also sometimes get stuck in the browser cache. My solution there is either to wait for them to timeout (a few minutes) or else to switch to a different browser to see what happens.

  • Thanks Ashley!!

    I'd not have noticed as I've only been a user since R139 (and I've bought a licence too).

    Spotting this would not have been possible if it were not for your excellent debugger and profiler. I'm sure this is not going to be the last optimisation issue that the profiler will help us spot.

    R

  • Correction, I was on R142

    I've just downloaded R143 and I found the textbox impact seems to be similar.

  • Link to .capx file (required!):

    dropbox.com/s/idbzqygq6wp6rdm/textbox_bug.capx

    Steps to reproduce:

    1. load project, run the debugger, no interaction needed

    2.

    3.

    Observed result:

    CPU usage goes to 17% (on my machine). Each text box adds between 5-6% CPU usage each... and it keeps increasing. I've managed to exceed 50% with 10 textboxes. Disabling the textbox makes no difference.

    Expected result:

    a disabled textbox should have no appreciable CPU usage

    an active textbox with no attached events should not be consuming so much CPU time - it's effectively a static structure... eg html forms.

    Browsers affected:

    Chrome: not tested

    Firefox: yes

    Internet Explorer: yes (ie10)

    Operating system & service pack:

    Windows 8 professional

    Construct 2 version:

    R141 (correction, I was actually on R142)

  • Ashley, I did a bit more digging... slowly deleting everything from the design. It was a textbox that did it. added 10% to the CPU usage. Would this make sense?

    I am going to post this over in the bug section. A standard textbox should not start consuming most of a CPU core.

    R

  • thanks Ashley.. so probably need to watch for ticking events. However I did a quick test and killed all ticks but cpu still high.

    If I find out what's causing the issue, I'll send you more info.   thanks again for the quick response.

    Rho

  • Hi,

    I'm new to C2 but enjoying it so far. I'm especially enjoying the insight that the profiler is giving. So I have a question.

    I've been developing up a test system to learn C2 concepts and I was flagging my CPU usage every second in a text message. I was averaging 2-3%, not a lot was happening.. mostly trying out a few sprite-based buttons, etc.

    Anyway, I've since started exploring XML, other memory structures, etc and my ENGINE usage is up to 10-12%, EVENTS are stuck at 1%, DRAW is at about 1% though it can peak. This could also be the time I swapped from R139 to R141 but my recollection is fuzzy on the timing.

    I am curious what drives the ENGINE usage as I must have done something that made it worse. I'm not worried about debugging what I coded, but I'm curious to know what is good practice to keep engine usage low and how does engine usage relate to what my code does (eg number of events and memory structures)

    For information, windows 8 machine, using R141, similar performance on IE10 and Firefox 23.0.1

    PS: the new debug tool is fantastic for chasing down problems. Much appreciated.

    Rho

  • that was the point really.. I'm not sure how to track this down and I could not see any dumpfiles or other crash diagnostics.

    However continued investigation looks like it's tied to me using key-shortcuts alt-f-s sometimes saves, sometimes crashes. Actually my last crash occurred by using ALT-F to call up the file menu before I even got to the save function.

    Hitting the "save" button with the mouse is much more reliable in that I've not seen that cause a crash.

  • Link to .capx file (required!):

    n/a

    Steps to reproduce:

    hard to say... 20-30% of save attempts will result in crashes. Any attempt is very small files as I am just learning. Happens on multiple different files. Very unstable.

    Observed result:

    C2 crashes on SAVE. I am also seeing legacy effects if I restart. Eventually multiple crashes will worsen performance of both the laptop and subsequent uses of C2

    Expected result:

    should be able to save file

    Browsers affected:

    N.A

    Operating system & service pack:

    Windows 8 Pro 64bit

    Construct 2 version:

    R.139

    Rho