#Updated belts, they now work with
1 messages · Page 1 of 1 (latest)
What about performance? Usually belts that require electricity are bad for UPS.
Also, I think you can't make belts with less than 1.875 i/s speed: https://lua-api.factorio.com/latest/prototypes/TransportBeltConnectablePrototype.html#speed
its been fine so far
they dont update every tick
u can visually see it too
but i do have an idea for preformance so
i think i can make it run smoothly
I guess you've made different prototypes for each possible speed value?
yeah pretty much
theres no real other way to do it from whta i can tell
That's like 107 prototype copies if you want scaling up to 200 i/s, it's far from limit
Btw every belt is split into 6 groups that are update separately from each other
Well idk what the actual limit is but I figured i should just cap it at 200 cus less prototypes and why do u need more than 200 items per second 😭
You can even add a research, that will increase max belt speed available
Like, you start with 30 i/s max and increase it with research
Yeah that’s what I plan to do
The max at the star is 10 lol
I have 7.5 i/s for first belt in my overhaul 🙂
other powered blet mods, have high UPS usage, you dont need to check the belts every Nth tick?
No?
I split up the usage of all the belts across multiple ticks
I haven’t even gone into decimals for the thing lmao
“0.001 items per second”
According to docs speed should be multiplier of 1.875 i/s. Otherwise I think it rounds?
Hmm interesting
So you probably should make speed scaling with this step
But ig this makes sense why 2 I/s works but 1 doesn’t
You can get displayed speed that don't get divided by this number, but real speed will be wrong, compared to tooltip
Soo account for the rounding?
Just round number in textbox to nearest correct value
Like user writes 8 i/s, you convert it to 7.5
Or round it up, I dunno
I guess your belts consume energy constantly? Do you spawn hidden entity under each belt for energy consumption or just calculate it runtime for EEI?
Yep
They have actual “motors”
tbh im not sure
all i did was this and it worked
local belt_power = {
type = "electric-energy-interface",
name = "ddos-belt-power-interface",
icon = "__base__/graphics/icons/accumulator.png",
icon_size = 64,
flags = {"not-on-map", "placeable-off-grid", "player-creation"},
collision_box = nil,
selection_box = nil,
collision_mask = {layers={}},
selectable_in_game = false,
energy_source = {
type = "electric",
buffer_capacity = "1MJ",
usage_priority = "secondary-input",
input_flow_limit = "100MW",
output_flow_limit = "0W"
}
}
data:extend({belt_power})
just an interface
AFAIK EEI is bad for performance. I heard that constant combinators have almost zero cost
Hmm, it doesn't have energy source
51k EEI cost about 2.5ms for me
Lamps doesn't show up in entity time usage, but with 51k of them my total update time was 0.3ms
so i should change it to what
cc or lamps lol
make the belts glow 🙏
Try lamps with always_on, and disabled anything related to glow or light
u actually placed 51k lamps??
I've used this: https://mods.factorio.com/mod/region-cloner
oh dam thats peak
ok lets see if i did it correctly
ok seems like idid