openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
761 stars 375 forks source link

Lime 8.2.0 seems to run worse than 8.1.3 #1853

Open Vortex2Oblivion opened 1 month ago

Vortex2Oblivion commented 1 month ago

After upgrading Lime to 8.2.0 I noticed that it was running worse than on 8.1.3

After doing a bit of testing on the OpenFL bunny mark demo it seems to run worse This is on lime 8.1.3 with 9.4.0 and git hxcpp image image

After upgrading Lime to 8.2.0 and keeping OpenFL and hxcpp on the same versions I tried it again image image

The CPU usage is almost DOUBLED and the memory also increased as well.

More testing should probably be done as I havent tried on other targets yet.

RapperGF commented 1 month ago

I confirm that this is a possible problem. I ran back-to-back tests with my bunny mark and noticed large FPS variations, namely an 84-60 drop off, which is not huge given my processor's speed. These only occurred on 8.2.0, and openfl versions did not seem to affect this number; using 9.4.0 or 9.2.2 did not appear to change performance. HL performs poorly, making the problem noticeable. from drop-offs of around 80 FPS.

Sword352 commented 1 month ago

I have ran a bunny mark sample in openfl with both lime 8.1.3 and 8.2.0 but I'm not getting the observed symptoms. Though that may be because I have a beefy computer.

NickMGC commented 1 month ago

runs fine for me even though my pc is 16 year old-ish

lime 8.1.3 and openfl 9.3.4 image

lime 8.2.0 and openfl 9.4.0 image

pc specs CPU: Intel(R) Xeon(R) CPU X5690 @ 3.47GHz GPU: AMD Radeon RX 550 Memory: 8 GB Motherboard: ASUSTeK Computer INC. P6T SE Rev 1.xx

Vortex2Oblivion commented 1 month ago

runs fine for me even though my pc is 16 year old-ish

lime 8.1.3 and openfl 9.3.4

image

lime 8.2.0 and openfl 9.4.0

image

pc specs

CPU: Intel(R) Xeon(R) CPU X5690 @ 3.47GHz

GPU: AMD Radeon RX 550

Memory: 8 GB

Motherboard: ASUSTeK Computer INC. P6T SE Rev 1.xx

Keep in mind I was testing with 200k bunnies It wasn't noticeable at first

NotHyper-474 commented 1 month ago
Testing with the BunnyMark from lime-samples and openfl-samples didn't appear to have any difference on the Lime version used. openfl-samples BunnyMark - 200k bunnies
OpenFL 9.4.0 + Lime 8.1.3
8 1 3-openfl9 4 0
OpenFL 9.4.0 + Lime 8.2.0
8 2 0-openfl9 4 0

Except for the high GPU usage (which is expected from an iGPU) CPU and memory usage were roughly the same. If it's worth mentioning I compiled to C++ target on Release, using git hxcpp 4.3.68

Vortex2Oblivion commented 1 month ago

Testing with the BunnyMark from lime-samples and openfl-samples didn't appear to have any difference on the Lime version used.

| openfl-samples BunnyMark - 200k bunnies |

|--------|

| OpenFL 9.4.0 + Lime 8.1.3 |

| 8 1 3-openfl9 4 0 |

| OpenFL 9.4.0 + Lime 8.2.0 |

| 8 2 0-openfl9 4 0 |

Except for the high GPU usage (which is expected from an iGPU) CPU and memory usage were roughly the same.

If it's worth mentioning I compiled to C++ target on Release, using git hxcpp 4.3.68

Very interesting since I've seen people report it running worse and people report that it is running about the same. May I ask what your pc specs are?

NotHyper-474 commented 1 month ago

Very interesting since I've seen people report it running worse and people report that it is running about the same. May I ask what your pc specs are?

AMD Ryzen 5 4600G, 16 GB DDR4 at 3000 MHz, MSI A520M-A Pro mobo, just a mid-range PC

Vortex2Oblivion commented 4 weeks ago

Is it possible it only runs bad on certain hardware? I have a ryzen cpu and a nvidia gpu.

Vortex2Oblivion commented 2 weeks ago

The problem seems to persist on lime 8.2.1