dop2000's Forum Posts

    • Post link icon

    It's possible that this problem may be related to recent windows updates (from the past couple of months).

    Do you have automatic updates enabled on both your laptops and do you install all recommended updates?

    What is the exact Windows version and build number?

    Also, do you run Windows for many days or reboot regularly?

    MPPlantOfficial

    Can we please keep this post on-topic? Several similar posts were closed and I don't want this to happen again.

    I don't have any issues with other applications performance on this laptop, only with C2.

    • Post link icon

    Ashley,

    r246 was definitely affected. Probably r244 too, but I don't remember for sure.

    I first noticed this about 30 days ago, when I started using C2 on this laptop with Windows 10.

    I included information about that experiment with bat file as I hope it might be useful. It's obviously a synthetic test and not a real usage case. But it demonstrates that it's not the windows uptime (or not just the uptime) which is causing these lags, but also the number of times C2 was launched.

    Also, you could probably try to leave a similar script running on a Windows 10 PC with all recent updates overnight, and check next morning if C2 is running slow or not.

    I understand, that an app should be starting from a blank slate, and I've never seeing anything like this with other applications. So maybe C2 leaves something behind after closing that's slowing it down over time? (temporary files, some processes in memory, open files or something like that?)

    For example, after that experiment I found that C2 created lots of temporary folders, 400Mb in total, many of which contained copies of project files in \Documents and Settings\{profile}\Local Settings\Temp

    Unfortunately, removing these folders didn't improve the performance. Only rebooting Windows seems to help.

    • Post link icon

    Hi Ashley,

    I believe this is the same issue as other people reported in those 2 closed posts.

    You wrote there that these issues should be properly logged as bugs, so I'm doing exactly that. I tried to include all details that could be useful.

    I don't have "thousands" of objects in my project. The test capx I attached to this bug report has only 92 objects.

    The project which I'm referring to as "big" is actually not that big. It's 15Mb in size, has 1500 events and 188 objects (not 370 as I mentioned in the video, I counted them wrong). I believe Construct 2 should definitely be able to handle it.

    And this same projects works well without any lags on two much older laptops, including 8 years old Celeron with 4Gb Ram, running Windows 7.

  • Nope, sorry. I really though this was something simple like sending JSON in clear text.

    There are several JS libraries available on jwt.io website, so I guess you need to find somebody who can make a plugin from that.

    Try posting a request in this forum:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The easiest solution would be to use SpriteFont and set the same width for all numbers.

    • Post link icon

    Problem Description

    When running C2 in Windows 10, event dialogs are opening with a significant delay.

    After restarting Windows 10, the lag disappears, but after several hours/days it becomes more and more noticeable and could reach 4-5 seconds.

    The issue seems to be related to icons and the delay depends on the number of objects in the project. In blank or small project there is almost no lag.

    Setting "Icon Mode=Don't show unique icons" removes the lag completely. However, not having unique icons in the editor makes development extremely difficult, especially in a big project with hundreds of objects and long object names.

    Switching Icon Caching on or off doesn't seem to make any difference, the lag in both cases is the same.

    Please see this video, from 0:43

    https://youtu.be/8thpozIBnUU?t=43s

    Attach a Capx

    https://www.dropbox.com/s/541c7mrvrydgt ... .capx?dl=0

    This capx doesn't really matter as the performance is bad in all projects, especially big ones.

    Description of Capx

    Capx with some test objects and events from the video above.

    Steps to Reproduce Bug

    Edit or add new event/action.

    Observed Result

    Delay for up to 4-5s when clicking "Add event" or "Add action", or double-clicking existing event.

    Expected Result

    No delay.

    Affected Browsers

    N/A, editor issue.

    Operating System and Service Pack

    Windows 10 Home, Version 10.0.16299 Build 16299

    Processor Intel(R) Core(TM) i5-7200U CPU 2.50GHz, 2712 Mhz, 2 Core(s), 4 Logical Processor(s)

    RAM 8GB, 256GB SSD

    Video Intel(R) HD Graphics 620

    Construct 2 Version ID

    r252, r251 and earlier versions

  • [quote:2u1r72gh]BOoted my W10 this morning. Slow as hell and froze randomly.

    Did a hard reset and suddenly it was performing well.

    Wait a couple of hours/days and it will become slow as hell again...

    I logged a bug report about this just now:

    • Post link icon

    Problem Description

    Construct 2 editor is lagging on Windows 10.

    Toolbars, menus, context menus (when you right-click something) take a long time to re-draw.

    Sprite Editor is very slow, even in small or blank projects.

    C2 takes over 30 seconds to load.

    (Event dialogs are also opening with a significant delay, but as this may be a different issue, I logged another bug report for it)

    All these problems are temporary resolved with Windows restart - C2 startup time becomes less than 5 seconds, editor works without noticeable lags.

    First couple of hours after windows restart C2 works well, but then it starts to slow down again.

    Please see this video, it demonstrates the difference in performance before and after Windows restart:

    https://youtu.be/8thpozIBnUU

    Attach a Capx

    https://www.dropbox.com/s/541c7mrvrydgt ... .capx?dl=0

    This capx doesn't really matter as the performance is bad in all projects, even blank ones.

    Description of Capx

    Capx with some test objects and events from the video above.

    Steps to Reproduce Bug

    Possible way to reproduce:

    I made a test yesterday - restarted my laptop, ensured that C2 works fast and there are no lags.

    Then I launched a bat file which starts a C2 project, waits 40 seconds, exits C2 and then repeats everything again and again.

    With every cycle, C2 loading time was noticeably slower.

    After 1 hour of running this bat, loading time for C2 dropped down to 30 seconds and all performance problems returned.

    Observed Result

    See the video

    Expected Result

    Stable performance

    Affected Browsers

    N/A, editor issue.

    Operating System and Service Pack

    Windows 10 Home, Version 10.0.16299 Build 16299

    Processor Intel(R) Core(TM) i5-7200U CPU 2.50GHz, 2712 Mhz, 2 Core(s), 4 Logical Processor(s)

    RAM 8GB, 256GB SSD

    Video Intel(R) HD Graphics 620

    Construct 2 Version ID

    r252, r251 and earlier versions

  • You can add two Bullet behaviors to one sprite. One with "Bounce of solids", one without.

    Then in runtime simply disable one behavior and enable another.

  • I also coudn't reproduce this bug.

  • JohnnySix , Maybe this has something to do with previewing and cross-domain situation. Have you tried different browsers? Are there any errors in browser's Console Log?

    Also, I wonder what's going on in the blurred lines on your screenshot?

    Maybe you are assembling a URL string using some variable that hasn't been initialized yet on start of the layout?

  • MPPlantOfficial

    Could you elaborate? So you create a circle with 179 bars. What's next? Use these bars to detect collisions and then calculate the reflection angle?

    You can do the same without the bar sprite.

    On collision with an obstacle check 180 or 360 times if obstacle is overlapping a point at (ball.x + radius*cos(loopindex), ball.Y + radius*sin(loopindex))

    There may be difficulties with both methods. What if the ball hits a corner?

    Another option would be setting "Bounce off solids=Off" and using Raycast plugin to determine the reflection angle. Although I don't know if it has been ported to C3 yet.

  • That shapy bezier floor, does it have a repeating pattern? You can break it into two TiledBackground objects.

    Say, one TiledBackground with curvy top stretched horizontally. And a small black square (also TiledBackground), stretched in both ways.

    Even if the curvy part of the floor doesn't have a pattern, you can crop it to something like 1280x50 and fill the remaining 250px with a tiled background black square. This will save quite a lot of memory.

  • I don't know if there are any logs, but here is something I found:

    Check Documents and Settings\{your profile}\AppData\Local\Temp

    or \Documents and Settings\{your profile}\Local Settings\Temp

    if there are folders starting with "cap*", they may contain your project files and there is a chance you can recover your game.

  • Leosa

    In theory - yes, you can probably generate levels (or rooms) randomly and endlessly. But it will be very difficult to make sure that they are:

    a) solvable, so that the player doesn't get stuck

    b) difficult enough to be interesting to play