mikeseven / node-webgl

WebGL bindings to desktop OpenGL
398 stars 60 forks source link

Can you create a desktop app with this? #49

Open ghost opened 8 years ago

ghost commented 8 years ago

I'm looking for an alternative to Electron.

I hate how Chromium disables RequestAnimationFrame on minimized windows and looking to just get my game working inside a canvas element and ship it as just an app. I could convert my ui using html to use webgl instead.. would switching to use this be a good idea?

Thanks

mikeseven commented 8 years ago

node-webgl is based on nodejs. The implementation of RequestAnimationFrame() is based on nodejs timing so it is of higher resolution than in web browsers.

On Mar 31, 2016, at 11:47 AM, Dillybob92 notifications@github.com<mailto:notifications@github.com> wrote:

I'm looking for an alternative to Electron.

I hate how Chromium disables RequestAnimationFrame and looking to just get my game working inside a canvas element and ship it as just an app. I could convert my ui using html to use webgl instead.. would switching to use this be a good idea?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/mikeseven/node-webgl/issues/49

—mike

ghost commented 8 years ago

Hmm. Thanks. I'm wondering if it's possible to then edit node's source and disable the requestanimationframe from not happening when the window is minimized? I guess doing that would be a lot easier than re-compiling Chromium, right?

mikeseven commented 8 years ago

yes you can edit the code to your own purpose.

On Mar 31, 2016, at 2:29 PM, Dillybob92 notifications@github.com<mailto:notifications@github.com> wrote:

Hmm. Thanks. I'm wondering if it's possible to then edit node's source and disable the requestanimationframe from not happening when the window is minimized? I guess doing that would be a lot easier than re-compiling Chromium, right?

— You are receiving this because you commented. Reply to this email directly or view it on GitHubhttps://github.com/mikeseven/node-webgl/issues/49#issuecomment-204136653

—mike

nrei0 commented 7 years ago

So, if node-webgl depends on nodejs, it means that is enough to have nodejs onboard of various of platforms to run your webgl application? I'm endeavouring my own game, so I'm seeking for solution to run my game from every platform as standalone.

mikeseven commented 7 years ago

Yes that is correct.

--mike


From: Andy Tyurin notifications@github.com Sent: Wednesday, August 23, 2017 12:17:58 AM To: mikeseven/node-webgl Cc: Bourges-sevenier, Mikael; Comment Subject: Re: [mikeseven/node-webgl] Can you create a desktop app with this? (#49)

So, if node-webgl depends on nodejs, it means that is enough to have nodejs onboard of various of platforms to run your webgl application? I'm endeavouring my own game, so I'm seeking for solution to run my game from every platform as standalone.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/mikeseven/node-webgl/issues/49#issuecomment-324243279, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAxYLG1M25H4r24o4hz_2BSu_GgUx-TFks5sa9ImgaJpZM4H9Din.