Regarding Node Webkit

Discussion and feedback on Construct 2

Post » Sat Apr 13, 2013 3:48 pm

[QUOTE=Ashley] We could possibly do a low-res render and stretch to fullscreen, but I'm not sure a software renderer is going to be much good with that still.[/QUOTE]
Even so, sounds like something that could help alot with shader effect performance for those high desktop resolutions. I'm all for it :) If you were to implement it, maybe also include an "internal" scaling option for effects that rely on at least a 2X scale?
B
22
S
6
G
1
Posts: 398
Reputation: 3,384

Post » Sat Apr 13, 2013 3:56 pm

Node-webkit does support changing window width/height:

window width/height // get/set

I implemented it in my unofficial node-webkit plugin.

You can even change the position of the window on the screen, etc... It's documented pretty well. Check out node-webkit github page.

Even though i'm not sure will the changing the size of the window help performance issues.

Cheers!

Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Sat Apr 13, 2013 4:36 pm

Changing the size of the window helps a lot when layer effects are involved. I'm all for this being implemented!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Apr 13, 2013 5:14 pm

I agree, but i don't see how to do it, except for scirra team to implement an official node-webkit plugin.

Currently, all node-webkit functionalities are dispersed on all others plugins, where they can fit (some in browser plugin, some in others).

I would like to see an official node-webkit plugin in the "platform specific" section of the plugins, with additional stuff that node-webkit provides, but i don't see it as something that is crucial.

I would prefer that scirra team works on more important stuff, get/set window functionality is easy to implement in a third party plugin, if somebody needs it!

Cheers!
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Sat Apr 13, 2013 5:18 pm

@JohnnySheffield I'd be happy to see that - would it work in preview, though? I guess that's not much of a concern.

B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Apr 13, 2013 7:26 pm

@Ashley - Here is a capx
https://dl.dropboxusercontent.com/u/7765312/Seam/Seamg.capx

And here is the exported capx as Node-Webkit
https://dl.dropboxusercontent.com/u/7765312/Seam/SeamNode.zip

Here is what I get when I run this capx in PREVIEW and shrink the Chrome window. No seams. Looks just fine


However, when using Node-Webkit and shrinking (or enlarging) the window, I get seams.


I would be less confused if the seams both appeared in the preview, AND node-webkit, but that isn't the case...
Is this something to do with "Powers of"? If I colour these sprites in this capx to a solid colour, seams don't seem (no pun intended) to appear...
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Post » Sat Apr 13, 2013 7:40 pm

@Squidster
Nope, no preview for node-webkit...

I'll whip a demo up tommorow or monday, so i'll reply here!

Cheers!JohnnySheffield2013-04-13 19:44:22
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Sat Apr 13, 2013 9:02 pm

@sqiddster - as far as I understand, in full-screen mode, the graphics card only has to draw that one application's window, it doesn't have to consider any of the others, so that means less work for it.Arima2013-04-13 21:03:46
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sat Apr 13, 2013 9:04 pm

@Arima ah, I see. @Johnnysheffield does node-webkit support proper fullscreen?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Apr 13, 2013 9:06 pm

If not, they should definitely add it as a feature.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: Tom and 20 guests