XavierCS-dev / old-Effect-Engine-2

GNU General Public License v2.0
0 stars 0 forks source link

Framerate starts low then continuously drops until around 250, half of what it starts at. #1

Closed XavierCS-dev closed 1 year ago

XavierCS-dev commented 1 year ago

The framerate continuously drops from 500 to around 250 over time with no clear reason. Maximum single core load is 30% which is very high, but it indicates that there is another issue, likely some kind of memory allocation slowing everything down. (Cannot view GPU usage for intel iris xe on linux)

XavierCS-dev commented 1 year ago

The issue seems to occur with Batch2D::update(), when pausing the update function, the framerate remains at around 650-670. This is still a low framerate for only drawing two images, however, those other issues can be ironed out later.

XavierCS-dev commented 1 year ago

The buffer reallocation specifically is causing these issues

XavierCS-dev commented 1 year ago

This issue is fundamentally unfixable for a raycaster style 2.5D engine. A pivot to full 3d is required if the GPU is to be used.

XavierCS-dev commented 1 year ago

The continuously dropping framerate is fixed. FPS is now stable at 800-1000 in release, much better, however there are still major engine limitations.