Performance and quantity of classes
Posted: Wed Jul 22, 2020 8:42 pm
Strange situation.
Writing a game using love2d and 3dreamengine.
90+ fps.
Adding a simple class (no drawing, no update inside, inheritanced from other simple class) — 25 fps…
Removing any string like cClass = require class gives higher fps again.
Looks like there is some limit.
The only suspicious thing — plus pare percents of CPU usage (96 to 98 —100, last drop?).
Memory is ok, video-memory is ok too.
The question. Does anyone know something about the situation?
Is there any known ways for optimizing this?
Writing a game using love2d and 3dreamengine.
90+ fps.
Adding a simple class (no drawing, no update inside, inheritanced from other simple class) — 25 fps…
Removing any string like cClass = require class gives higher fps again.
Looks like there is some limit.
The only suspicious thing — plus pare percents of CPU usage (96 to 98 —100, last drop?).
Memory is ok, video-memory is ok too.
The question. Does anyone know something about the situation?
Is there any known ways for optimizing this?