d939569e84594e1586eac3e65e28dfb2's Forum Posts

  • do you have a capx example? from what you say, it should work unless you are out of bounds.

  • Thank you everyone for your help and responses!

    I never used the loopindex before, it seems like something I need in this case

    but what I still don't understand, is how I can make a reference to a certain position of the first object in the lay out?

    So the position of the first instance of the object is fixed at X,Y

    The following instance is Y+75, the third is at Y + 75 + 75 and so on..

    thanks anyway!

    If I understand correctly, what you want to do is maybe this:

    function doLoop
       LocalVar firstY = 0
           set firstY  = yourObject.Y
           Loop here
                create another yourObject
                set yourObject.Y = firstY + (75*loopindex)
    [/code:g8kl1c7i]
    
    That will only work well, if there is one instant of YourObject. If there is more than one, you need to make sure you pick the right one. I would recommend doing that anyway, for completeness and error-checking sake.
  • I am trying to create an array to store the values of some curve. What I have is this

    For loop in 1:10000

    Set Array.At(loopindex) = f(loopindex)

    f is some mathematical function.

    This is done at the start of layout, and I notice a lag (around 0.5 second) switching between layout. The game then runs at 60 frames per second, but I am just wondering if I can do something smarter so that user can experience a smoother transition.

    could you try some sort of wait screen or transition screen ?

  • You don't really need currY variable, you can use loopindex*75

    True enough. I like using a variable for clarity sake, but both ways will work just fine.

    Thank you for putting this together

    Here are my stats in testing this capx:

    W7 machine:

    Tested on a 6 year old probook, running W7. Phenom II, barely can even run Chrome.

    Open project: 9 minutes (vs 15 min)

    Usable once open: <1 minute (vs 5 min)

    edit action: < 1 second (vs 8-15s)

    edit event: < 1 second (vs 8-15s)

    add new sprite (from right click, add, to editing it): instant (vs 30s)

    moving sprite on screen: instant (vs 15s)

    Copy/paste 1 variable: 2 seconds (vs 21s)

    (the vs in brackets is using a 6700k, SSD, 32 GB ram W10 machine that has no problem running multiple VMs at once. while loading slow, the computer is under little to no load and has plenty of room to do things).

    Ashley please keep in mind this is a POC (Proof of Concept) CAPX to show the issue. The numbers above speak for themselves. We have spent countless of hours putting together all of this data and test for you. If you could kindly look into this issue a bit further, that would be appreciated. The count of the users affected keeps rising with the number of C2 devs I have been asking to try out these tests. It is clearly an issue multiple people are suffering from, all using well-known software/hardware ranging from low to high-end machines.

    > Just prioritize this please Ashley . I've been tweaking OS settings and registry for days now.

    >

    I need example projects and steps to reproduce. I don't have anything other than this event variables edge case to work with or prioritize right now.

    > How do you explain W10 taking 1 second to load, while W7 is instant? Let's tackle that first to see if it helps.

    >

    I've no idea. Maybe Win10 added a new feature to dropdowns which has greater performance overhead or something.

    There are plenty of options to try and help ASHLEY. For example, sending us a debug build so we can provide you with data points to look into. We have shown this issue is not on all systems, so you have not really had a chance to try to reproduce it. You would need to try multiple setups most likely. It is an issue, and we have been able to reproduce it.

    Can you look into why the dropdowns are slower? If we can answer that it might help. As mentioned, on some W10 machines, the dropdown takes 1 second at first and instant after that. others, it is always 1 second. Something is going on there which is part of the issue. Saying Windows 10 must have changed something, does not make sense in this case...or else it would be the same across the board. It also is not just dropdowns that are affected, just in this case to be as concrete as possible it is. But there is also huge differences in all dialogs, and even copy/paste variables.

    I'd even be willing to spend a few days to set-up a VM for you to test, as I have shown it is recreatable on my VM. I just need a windows key from you, and then we can setup bitsync to send it.

  • What have you tried? This should be pretty easy

    Var currY = 0
       For 1...x
          Create Object YOUR_OBJECT
          Set YOUR_OBJECT y to currY
          currY = currY + 75
    [/code:2x3i8av5]
    
    That should do it on a high level.
  • what exactly is your logic? can you post a screenshot?

    depending on the logic, some sort of caching might speed it up for you.

    1 second with 1000 variables is not bad enough to seem to need fixing. I don't see it taking any amount of time as bad as anyone else reports, especially not 10sec+, so basically this is "can't reproduce".

    There may well be other cases, but what I am trying to tell you is I don't have any way to reproduce those either. I need steps to reproduce and example projects, for each potential slow case. I don't have any right now. All I've got is one edge case with variables that doesn't look particularly bad.

    Ashley:

    How do you explain W10 taking 1 second to load, while W7 is instant? Let's tackle that first to see if it helps.

    - it takes 1 second to open every time, consistently. It has to fill a dropdown list with 1000 items every time so this is likely why. Rebooting won't affect this (it still has to fill 1000 items), and I doubt it's anything to do with icons. It would only turn to 4-5 seconds if you correspondingly had 4000-5000 global variables, which even the biggest projects ever won't get close to (a huge project would have that many events, not just variables).

    So I don't see how this is a sign of anything more serious. Like I say, this seems like a very specific case, and if that's it, I don't think it's worth optimising (who has 1000 variables in one project, let alone 5000?). I think there are probably other cases that actually need optimising, but like I say, I'll need projects and repro steps for them.

    Ashley, sorry Ashley, but this is not what is being seen in testing. How do you explain it taking 1 second to load here, when on W7 it is instant? How long did you try the project for, to see if there was slowdown?

    1000 variables are not unreasonable for a large project. I have worked on projects with 10,000's of variables that are highly efficient. This is not uncommon at all in other languages. But that is not the issue at hand currently in question. It is the load time we are experiencing. If you go through this thread, there are users reporting 3-5 second load times, and 10+ seconds. In my own VM testing, I was hitting 30 second loads and 5 second loads at times. Just like you, it only took 1 second for first couple tries.

    As has pointed out, it is not just variables but objects causing the same delay. There is also other odd behaviour experienced when this occurs, such as slow copy/pasting of variables. All dialogs lag. It is a stream of issues. I have reported just this variable dialog popping as I believe it narrows down the true issue and it is the only thing I could concretely reproduce multiple times and easily, but whatever causes this is causing a stream of issues.

    Thanks Ashley, I understand you are busy but a simple reply really helps to know it is being looked at - otherwise one has to assume you have not seen it and we have to tag you in the post again to be sure.

    When you say your dialog takes about 1 second to open, is this subsequent opens too ? If so, that is part of the problem. Subsequent opens are instant on my W7 machine. It should not take 1 second to open. If it does for you, this indicates to me you will hit the second(more serious) part of the issue, where if you use the project long enough that 1 second turns into 4-5 seconds and you need to reboot the computer to regain performance. This is the same issue as far as I can tell, it is just worsened.

    I would say, "so all this report proves so far is "editing actions using event variables is slow if you have 1000+ variables""

    Is incorrect, given what I mentioned above. I also don't believe that is the root cause given other users feedback of the issue. Such as who has extensively spent equal if not more time debugging this issue than me.

    If there is a variable limit, this should be documented and recommendations given on how to get around it. Such as using an array for all global variables (an array containing your data, which you use a getter and setter for, similar to global variables). This is something I have been tempting to try, but have not had time yet. It also does not help a project that already has many variables as replacing them with this solution (again, not tested yet), would take many hours to get right.

    As far as multiple issues and making separate reports, I have created this report for the dialog slow loading issue. I have all details I believe to be relevant in the first post to the slow loading issue. If the dialog eventually slows to 4-5 seconds and a reboot gets it back down, that is part of the same issue from my own experience. Until proven otherwise, it appears to be all the same bug so far.

    Can you send me the debug build to try and collect data on my machine? Would that help at all ?

    - I have edited my comment. Reread again please.

    I can confirm this issue is on Desktops too, not just laptops.

    My laptop was with a fresh W10 from Microsoft too, no bloatware except for what Microsoft includes.

    If it is driver related, I am not sure which ones. It does not appear to be graphics (if it is then both NVIDIA and Intel are to blame, which is not likely). Different SSDs, Motherboards, CPUs.

    I doubt this is a driver issue. Although possible, but unless the issue is across multiple drivers and multiple manufacturers, at which point it would be C2 most likely as the culprit. But really, it is all speculation until C2 does some debugging.

  • > What about installing the free version to a USB drive and running it off of there?

    >

    Nothing change, the problem is that I have no option to choose where to install. Otherwise I could just try a different driver and/or name...

    That is odd. You should have the option to choose. Has something changed recently? It has been a couple versions now, but I made a USB version of C2 not that long ago.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    are you using a laptop with Windows 10?

    I have tried:

    • Powerful desktop with W10 (32gb ram, 6700k)
    • 2x Laptop with W10
    • VM with W10

    All the above hit this issue. There is no correlation in hardware and software that I can see. One of the laptops was a fresh install of W10.

    I have also tried an old 6 year old Probook Laptop with W7. It does take awhile to pop the dialog the first time, but after that it is instant loading faster than my desktop. This is pretty insane when you think about it. This laptop can barely run Skype, and it outperforms my desktop with C2.

  • What about installing the free version to a USB drive and running it off of there?