![]() |
MyLibs - Printable Version +- ScratchPad Forums (https://www.scratchpadgames.net/forums2) +-- Forum: Scratchpad Forums (https://www.scratchpadgames.net/forums2/forumdisplay.php?fid=1) +--- Forum: Edition 2 (https://www.scratchpadgames.net/forums2/forumdisplay.php?fid=5) +--- Thread: MyLibs (/showthread.php?tid=11) |
MyLibs - bbeuken - 06-05-2025 In book one I used a library build to gather together all the small frame work methods, like file handling, sound etc, that we were repeatedly using. This was in part becuase the Pi3 is a really slow machine and full rebuilds were taking a long time. Thats to say compiling them all regularly was slow, but Linking takes alsmost no time, So as I went along I seperated common content to a mylibs build that could just be linked in without the compiler time overhead, and that worked great The only downside to that is that as you move along the progression of the books projects, your mylibs does grow and change and it can become less compatible with the earlier projects you build.. Not that many people went back to 2D after 3D but... some did.. I explained to them, just rebuild the lib for each project one time and all will be well. It can still work great on the new version with Pi4/Pi5/Pc just make another common project as a lib output and include that lib as a lib. But these newer machines are soooo much faster that I didn't really see the need to shed off the common files.. You can still do it if you want though, I leave it up to you, Lib managment is a nice skill to have, and you making a portabl lib is a nice idea. I might make a video on it if people tell me they need it explaining. |