Slicer Discord
faster sqrt function for marlin in planner.ccp – 3D-Druckmodell von Thingiverse Thingiverse

faster sqrt function for marlin in planner.ccp

9 Downloads
21 Likes
0 Makes
Zum Modell
float SqrtAprox(float number) {//low in fat
unsigned long i;
float x, y;
y = number;
i = * ( long * ) &y;
i = 0x5f375a86 - ( i >> 1 );
y = * ( float * ) &i;
return number * y;
}

This is an alternate planner.ccp file that has a faster sqrt calc function. I don't know if it really speeds up planner.ccp but it does increase the performance of a sqrt to complete by 300%.


read here for more info http://forums.reprap.org/read.php?147,219210


I read about several methods before hacking this one together. I do not claim where it comes from just that it was from researching different methods. several people are likely to credit as it is based of of the quake III engine hacks to speed up lighting calculations, and all i did was slim it down some and test its performance, then modified the planner.ccp file. it is still experimental and has some errors that are around up to 3.5% for integers. I'll play around with reducing those errors. this is ok for planner.ccp as it
Quelle
Thingiverse
Was du zum Drucken brauchst: Anfänger Niedrige Konfidenz
Einteilig
Supports 1/3
Zusammenbau 0/3
Einstellungen 1/3
Druckbett 0/3
Nachbearbeitung 0/3
Drucker
FDM / FFF
Dateiformat
STL
Material
PLA
Software
Cura, PrusaSlicer o. Ä.
Noch keine Bewertungen
Noch keine Kommentare – sei der Erste!
Feed Blog Slicer Kostenrechner Bildersuche Einreichen Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Zur Sammlung hinzufügen