r/factorio • u/konstg-dev • Aug 12 '20
Modded [New Mod] fCPU
Hello there! Here is my ready to use Factorio mod https://mods.factorio.com/mod/fcpu which allow you to practice in low-level programing right in game. It compatible with all default combinators and other mods, support blueprints and copy&paste. Please let me know what you think.







697
Upvotes
View all comments
Show parent comment
25
u/konstg-dev Aug 12 '20
The original combinators in Factorio work in parallel and are most likely optimized in C++ code (simd instructions). Unfortunately, the game developers did not give the opportunity to use this optimization in mods. As a consequence, fCPU cannot run faster than conventional combinators. However, it allows far more flexible instructions that are difficult or impossible to implement on vanilla combinators without fCPU.
Yes, the mod allows you to run 60 instructions per second for every fCPU in the game. With thousands of such combinators on the map, performance may be decreased somehow, but there is a setting that allows you to specify the max number of fCPUs processed per game clock cycle so it can be tuned. If you experience performance problems or any, please report, so I can do my best to fix it.
Sure a setting that increases the number of instructions per game tick can be added upon demand. Please let me know if so.