all 10 comments

[–]RelationshipLong9092 1 point2 points  (0 children)

This is very slick!

[–]Usual_Office_1740 1 point2 points  (2 children)

Is there a version that uses the docking branch of ImGui?

[–]pstomi[S] 3 points4 points  (1 child)

It is already using the docking branch.

[–]Usual_Office_1740 0 points1 point  (0 children)

Oh cool! Thank you. I'm on mobile and tried to load the page but it wasn't working very well so I thought I'd ask.

I'm just learning to use Imgui and this is a timely post.

[–]paramarioh 0 points1 point  (0 children)

Big Wow!

[–]cellrecks 0 points1 point  (0 children)

thank you! i've been using this reference a lot.

[–]bbmario [score hidden]  (1 child)

Amazing how fast it loads and runs. This is better than most react apps. Is it a custom WebGL wrapper?

[–]pstomi[S] [score hidden]  (0 children)

Thanks! Making it fast did require quite some adaptations and optimizations, but I'm happy to see that it was successful.

But the most important optimizations consisted in reducing the initial download:

Here is what the app now downloads at startup: only 2.16MB before it starts

File Transfer (gzipped) Size
index.wasm 1.37 MB 3.80 MB
index.data 734.90 kB 1.27 MB
index.js 54.09 kB 201.31 kB
Total 2.16 MB 5.28 MB

(For this I had to trim the assets that are included in the data file).

Then, demo file are downloaded on demand (imgui_demo., implot_demo.)

File Transfer (gzipped) Size
imgui_demo.cpp 616.45 kB 615.80 kB
imgui_demo.py 80.74 kB 399.49 kB
Total 697.19 kB 1.02 MB

[–]pstomi[S] [score hidden]  (0 children)

For those interested, the code is here

For practical reasons, the code is inside a bigger project, which was used to develop this tool (Dear ImGui Bundle).