Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 04 2021 17:04
    elisee closed #19
  • Mar 04 2021 17:04
    elisee commented #19
  • Mar 04 2021 17:04
    elisee closed #18
  • Mar 04 2021 14:04
    MuskettDev opened #19
  • Mar 04 2021 13:59
    MuskettDev opened #18
  • Mar 01 2021 20:40
  • Mar 01 2021 20:40
    Travis superpowers/superpowers-game@857ba57 (dependabot/npm_and_yarn/SupEngine/three-0.125.0) failed (355)
  • Mar 01 2021 20:16
    dependabot[bot] labeled #194
  • Mar 01 2021 20:16
    dependabot[bot] opened #194
  • Mar 01 2021 20:16

    dependabot[bot] on npm_and_yarn

    build(deps): bump three from 0.… (compare)

  • Mar 01 2021 20:16

    dependabot[bot] on npm_and_yarn

    build(deps): bump three from 0.… (compare)

  • Mar 01 2021 20:16
    dependabot[bot] labeled #16
  • Mar 01 2021 20:16
    dependabot[bot] opened #16
  • Jan 28 2021 22:29
    Travis superpowers/superpowers-app@3ade581 (dependabot/npm_and_yarn/electron-9.4.0) passed (320)
  • Jan 28 2021 19:43
    dependabot[bot] commented #174
  • Jan 28 2021 19:25

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jan 28 2021 19:25
    dependabot[bot] closed #73
  • Jan 28 2021 19:25
    dependabot[bot] commented #73
  • Jan 28 2021 19:25
    dependabot[bot] labeled #77
  • Jan 28 2021 19:25
    dependabot[bot] opened #77
Mathieu Triay
@MathieuLoutre
Regarding the precompilation, I'm monkey patching a version of Superpowers at the moment and I've got it to not generate source maps and bypass the compilation of user generated scripts entirely
(thanks to your patch!)
And now I'd love to understand why the plugins need to be compiled at all (well, the definitions need to be compiled!) because the runtime and components are plain JS it seems
Vianney Petit
@Ikalou
Yeah, you're gonna have to ask elisee. There's probably a good reason.
Mathieu Triay
@MathieuLoutre
I think if you can just bypass the compilation of the typescriptAPI files for the global plugins then you can just remove the Typescript module in production
and that just slims down the whole thing crazily
Vianney Petit
@Ikalou
The game won't run if you remove the typescript plugin at all
Or by module do you not mean plugin?
Mathieu Triay
@MathieuLoutre
Yeah I saw that haha
No I meant the node typescript module inside the typescript plugin
(I don't know if that's very clear)
At the moment the typescript compiler is bundled in the typescript plugin
Vianney Petit
@Ikalou
Yeah I know
Mathieu Triay
@MathieuLoutre
if you can take that out (essentially by bypassing all compilations) then you can win back 3mo
Vianney Petit
@Ikalou
My game had 25MB of media so I didn't really care about the 3MB of clutter
I was really looking to cut down the loading time on slow CPUs because of compilation
Mathieu Triay
@MathieuLoutre
yeah that's definitely good too
Still if you don't compile the 31 global plugins you'll get a speed boost too
Vianney Petit
@Ikalou
I don't really have a clean solution to not compile the plugins code
Mathieu Triay
@MathieuLoutre
(My game's media is 5mo so 3mo is more than half the payload!)
At the moment I'm not looking for a clean solution but rather any solution
haha
Vianney Petit
@Ikalou
Honestly, for plugins, I just took kinda just took a dump of the data structure out of the compleTypescript function
Mathieu Triay
@MathieuLoutre
AH
Why didn't I think about this?
That's great
Vianney Petit
@Ikalou
I'll just share that other patch to you. Kinda ashamed of how ugly it is but ho well
Maybe it can save you a couple minutes
Mathieu Triay
@MathieuLoutre
haha if you looked at the state of my version of Superpowers you'd be scared I think
You'll get a mention in the credits of the game if it comes out in time! haha
Vianney Petit
@Ikalou
Basically what I said... add I added a URL parameter ?dump=1 to make it dump the data structure ^^'
Mathieu Triay
@MathieuLoutre
haha
Well for a hack the patch is quite readable
It's great
I think you just saved me a sleepless night or two
If that works out it shouldn't be too complex to build that in the production build process
Vianney Petit
@Ikalou
You don't actually need defs or code if you use my other patch as well
compGlobalCache.js is the script I have in my build pipeline that runs on the previous dump
But yeah, if you build a cleaner solution and/or manage to slim down the typescript plugin, please let me know
Mathieu Triay
@MathieuLoutre
For sure!
So with your compGlobalCache.js you can skip linking the runtime/component?
(not 100% sure I followed that sorry!)
Vianney Petit
@Ikalou
Not at all, that only allow you to get rid of the typescriptAPI.ts
Mathieu Triay
@MathieuLoutre
oh right!
Yes I think I get the code now
sorry
Vianney Petit
@Ikalou
The best you can do is to find a way to slim down the typescript plugin
Mathieu Triay
@MathieuLoutre
Yep that's what I'm after
I think if I can do that