f3d icon indicating copy to clipboard operation
f3d copied to clipboard

F3D stl reading is not fast as it could be

Open mwestphal opened this issue 3 months ago • 6 comments

Describe the bug As reported here https://papas-best.com/stlviewer_en and by other users F3D is slower than other solutions to open .stl files

To Reproduce Steps to reproduce the behavior:

  1. Open the file using f3d --no-config Fantasy_Castle.stl
  2. Wait for opening -> 2s
  3. Same with fstl -> 1s

Expected behavior Performance should be in par with fstl Proper profiling needed.

System Information:

  • OS: Any
  • GPU and GPU driver: Any

F3D Information Paste the content of f3d --version or f3d-console.exe --version on Windows: 3.5.0

mwestphal avatar Aug 19 '26 12:08 mwestphal

Hey, @mwestphal can I take this, might have to research a bit if that is fine?

midaksh avatar Aug 21 '26 10:08 midaksh

Sure, please note this is more of an investigation in order to figure out what could be improved potentially.

mwestphal avatar Aug 21 '26 10:08 mwestphal

Okay, will ping you on discord for a new thread regarding the same.

midaksh avatar Aug 21 '26 10:08 midaksh

Some improvements in #3458 and #3463

Meakk avatar Sep 03 '26 06:09 Meakk

ill reopen and run some quick bench using the nightly.

mwestphal avatar Sep 08 '26 06:09 mwestphal

3.5.0:

$ time ./bin/f3d ~/data/tmp/files/Fantasy_Castle.stl  --output=a.png

real    0m0.563s
user    0m0.718s
sys     0m0.209s

3.5.0-286:

$ time ./bin/f3d ~/data/tmp/files/Fantasy_Castle.stl  --output=a.png
real    0m0.377s
user    0m0.450s
sys     0m0.155s

Definitely faster.

mwestphal avatar Sep 17 '26 20:09 mwestphal