Jump to content
  • 4

Optimisation suggestion: batched Sector():createEntity


nand

Suggestion

When creating an asteroid field, approx 75% of the total time is spent on the following line:

Sector():createEntity(desc)

This always takes about 1.2 milliseconds (singleplayer) -- per every. single. asteroid.

I don't know where the bottleneck inside that is, but Is there any scope to optimise this?

Something like:

Sector():createEntities(unpack(multiple_descs))

If so, this could reduce loading times massively!

On a typical asteroid field sector, on my PC, Avorion spends 5 seconds calling that line over and over, so the potential savings are huge!

Edited by nand
Link to comment
Share on other sites

0 answers to this suggestion

Recommended Posts

There have been no answers to this suggestion yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...