Page 1 of 1

[1.1.69] Productivity bonus does not properly apply at high crafting speed

Posted: Sat Sep 24, 2022 7:07 pm
by protocol_1903
Problem

Any number of modules inside of a machine do not create the expected productivity. It was tested in assembly machine 3s and electric furnaces.

Testing

Test 1
image_2022-09-24_115747419.png
image_2022-09-24_115747419.png (522.39 KiB) Viewed 908 times
image_2022-09-24_115756598.png
image_2022-09-24_115756598.png (474.43 KiB) Viewed 908 times

This is the construction used to test the productivity in furnaces. The arithmetic combinator takes all inputs and returns the remainder of those numbers when divided by 100. This allows viewing of the total number of items inside of the system by hovering over the power pole.

Each of the furnaces was given a total of 10k copper ore. Each furnace has 2x productivity module 3s, and 12x beacons affecting it with 2x speed module 3s each.
The expected result was exactly 12k copper plates, with no productivity left inside of the furnace. This expectation returned true in 7 of the 16 furnaces in which this was tested. 5 of the remaining furnaces had a remaining productivity of ~ 1% and 12k finished products, and the other 4 had a remaining productivity of ~ 99% with 11999 finished products.

Test 2

image_2022-09-24_115724317.png
image_2022-09-24_115724317.png (514.68 KiB) Viewed 908 times
image_2022-09-24_115734692.png
image_2022-09-24_115734692.png (461.86 KiB) Viewed 908 times

This is the construction used to test productivity in assemblers. The arithmetic combinator takes all inputs and returns the remainder of those numbers when divided by 100. This allows viewing of the total number of items inside of the system by hovering over the power pole.

Each of the assembling machine 3s was given a total of 10k copper plates. Each assembler has 4x productivity module 3s, and 12x beacons affecting it with 2x speed module 3s each.
The expected result was exactly 28k copper cables, with no productivity left inside of the furnace. All assemblers returned 28k copper cables, but anywhere from ~ 1-10% productivity left over in the machine.


Expectation

Productivity will be applied with a flat productivity rate per module per craft. In this case, 10% productivity per module per craft.

Appendix

I looked and found a similar bug report here that details assemblers with a crafting time of less than one tick, but this isn't what is happening here.

Re: [1.1.69] Productivity bonus does not properly apply at high crafting speed

Posted: Sat Sep 24, 2022 7:41 pm
by Silari
Almost certainly a dupe of this

Progress is a floating point number, they aren't precise so sometimes you get very tiny differences in the amounts.