Danwood's Forum Posts

  • There has been a NW2 related fix for icons again. Seems like mainly Win10 systems were affected, that's probably why it worked fine on my end.

    Here is the issue (already fixed): github.com/nwjs/nw.js/issues/7236

    I confirm it's fixed now :D

  • Are you sure this isn't caused by a faulty app icon or ResHack?

    You still didn't upload anything for me to test on my end.

    Not using ResHack,

    I'll upload a test project after work!

  • > TheRealDannyyy

    >

    > The icon bug doesn't happen with 0.42.4, because NW2 isn't really enabled for me, while in 0.42.5 (nightly build) is.

    That's weird. Try removing the old chromium arg to enable it or download the recently released Scirra build. No clue why or how that could happen.

    Already did that, it's strange. 0.42.4 icon works fine, but nw2 isn't enabled by default, if i add the arg the icon gets glitched again and nw2 enabled.

    0.42.5 is enabled by default as supposed to :S

    I'm on C2

  • TheRealDannyyy

    The icon bug doesn't happen with 0.42.4, because NW2 isn't really enabled for me, while in 0.42.5 (nightly build) is.

    Thanks for the GC thingy, worked :)

  • > I've just discovered that when i unload all sounds, the lag disappears and CPU usage goes back as it should be!

    First thing would be to try this out in other browsers, to see if this is a general problem with the web or NWjs only.

    > Do you have any suggestion? I've read there is a trick in this guide related to the issue, is it still relevant in newer NW2?

    If you mean forced garbage collection. That's only going to instantly unload stuff from memory, shouldn't change anything CPU related.

    There could be tons of possible causes for CPU spikes. You'll have to isolate the exact events and try to reproduce them in a smaller project.

    As always, if it's caused by NWjs, I can report it for you but general issues like these are better for Ashley to investigate. NW2 shouldn't make a difference in this regard.

    The CPU spikes and consequent lag disappear as soon as i unload all sounds, so if GC isn't involved, it's not a NW issue, as you stated.

    PS: read my last post edits for a few more things :P

  • So...

    I'm working on a big project, a game where a whole ecosystem is simulated: hundreds of objects are on the map in real time and interact with each other and with the world.

    Performance issues are not new to me, and in the last NW versions (with NW2 enabled) they're are better, but there is a problem: after few minutes in game, lag starts.

    I've just discovered that when i unload all sounds, the lag disappears and CPU usage goes back as it should be!

    This is a great discovery for me, cause i've at least an understanding on the issue, my concern now is to find a way to use that to solve the issue unintrusively: i can't just trigger "unload all sounds" from now and then, that would ruin the game's atmosphere...

    Do you have any suggestion? I've read there is a trick in this guide related to the issue, is it still relevant in newer NW2?

    Thanks, and btw TheRealDanny, you're doing God's work, it's really appreciated :*

    UPDATE1: i'm trying the GC workaround, should i execute "global.gc();" every tick, at a timer or just at layout start?

    UPDATE2: Unreleted with the above issue, but the icon is still a red square in NW 0.42.4 and nightly 0.42.5, although the changelog states it is fixed.

  • Danwood The link doesn't work, please fix.

    As a side note, are you using NW2 by any chance? I just reported an issue regarding that, which sounds similar to what you're experiencing.

    Yes it is the same issue! im using nw2 and thats the same pink icon appearing.

  • > After updating my game with NW 0.43 (from NW 0.23), i've replaced the icon with Res Hacker as I always do, and released the build on Steam, and users report me the icon they see in the task bar is a pink square... any idea? <.<

    >

    > The icon is the same as before, 32x32, 16mln colours

    Please upload the icon and source image so I can test it on my end.

    Also, what steps did you take in ResHack exactly?

    Here the icon and image.

    To apply it, as i've always done, I:

    -Open ResHack

    -Drag nw.exe (renamed to run_game) on the left panel

    -Open the "Icon" folder

    -Right click on "1" and click on "Replace icon"

    -Insert my icon, save and exit

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • After updating my game with NW 0.43 (from NW 0.23), i've replaced the icon with Res Hacker as I always do, and released the build on Steam, and users report me the icon they see in the task bar is a pink square... any idea? <.<

    The icon is the same as before, 32x32, 16mln colours

  • Here is the report for the startup performance regression: github.com/nwjs/nw.js/issues/7192

    Will wait with the other report until there is more info available.

    I think Roger just fixed it in today's nightly build :D Awesome work!

  • 273 greatly reduces performance on me when many shadow caster object are on screen. I'm not able to reproduce the bug, but there must be something making the shadow behaviour more CPU intensive than 272.

    Back in 272 i could zoom out the game and enjoy 60 fps, now with 273 it's 20 fps! If i disable shadows, it goes back to 60.

    If someone is able to reproduce the issue, please do so, I'm failing to do so with a new game, since the problem could be ause by a specific position of the shadows on or off the screen..

  • Bug is stillpresent in 273, plus ShadowLight change deteriorated performance in my project with many shadow caster objects.

  • I've discovered that updating from 272 to 273 reduces performance with many SHADOW CASTING objects on screen.

    I'm asking someone else to reproduce the problem, confirm it, and possibly build a CAPX to show that to Ashley, as that's a major issue for me and i guess for some of you.

  • Danwood I've tested things out on my end and there are some more issues as well.

    Since this is experimental and noone should use it for serious projects anyway, I've posted a request inside the official Github issue and it will hopefully be sorted out soon. If not, I will have to look into multiple workarounds, which may or may not be easy to implement.

    I've noticed the F11 thing as well... Thank you for your commitment! I'm looking forward to using this new feature as it makes the newer versions worth it for me, as after 0.23.6 performance decreased drastically, forcing me to stick with that version until now.

  • In the new releasaes, adding --enable-features=nw2 really improves the performance for me, but i get a X button when in fullscreen if i hover the mouse on top of the screen... any way to remove it?