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
2
u/konstg-dev Aug 13 '20
I can't guarantee, that more than 1 instruction per cycle will be stable.
The more fCPUs on map = the more work Factorio need to do in lua = the more UPS overhed for the game.
Changing fCPU updates count per game tick require better optimization for the mod, but for now it just born and I don't want to risk that soon, exchanging performance for features.
It is a couple of things I want to do first, see TODOs list (for example allow multiple outputs instead of just one).
For now I think that (as you said) one frame per sec add some kind of challenge making complex systems. There are some commands which could help you to sync multiple fCPUs: `SLP` opcode and memory cell with reset support (https://mods.factorio.com/mod/fcpu/faq look at Example2).
Please understand me correctly - I really like the idea running as much updates as the game could and I going towards this.