question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about performance

See original GitHub issue

Hi,

I have question about performance. I am realy begginer in programming but i try ur Entitas-CSharp and it feel realy, realy great. I saw ur videos 2015 and 2016 about it. And saw a few test in those videos. But i still have a question.

My project for now it some kind of evolution simulation. Where i have wolrd 150x150 where each cell is an object. Where we have many other objects (bush, seed, animal around 10000-20000 of each). And they all do very many actions each turn. All of that require a lot of performance.

And now close to my question. I saw https://www.youtube.com/watch?v=tGmnZdY5Y-E video and in https://youtu.be/tGmnZdY5Y-E?t=1094 Joachim Ante says about struct, iComponentData and memory reading. In my project where i must read a few arrays with 10000+ members in each memory reading can be a part of performance boost. In ur exeample https://github.com/sschmid/Entitas-CSharp/wiki/Unity-Tutorial-Hello-World we have one component:

using Entitas;

[Game]
public class DebugMessageComponent : IComponent 
{    
    public string message;
}

but he is a class. If we have array 20000 entity how they will be use a mamory? How fast reading will be? if we change it to:

using Entitas;

[Game]
public struct DebugMessageComponent : IComponent 
{    
    public string message;
}

it will be faster? (it work, i try to do that in example)


I am sorry if my question is stupid, and i am sorry for my poor english. But I will be very grateful for your reply.

with many thanks.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sschmidcommented, Jan 21, 2018

@owengalenjones This is fixed as of 0.47.3, see #540 for a workaround

1reaction
sschmidcommented, Jan 21, 2018

Yes, if you’re dealing with thousands of entities, you can get a massive performance boost by not using the replace method. Groups will still work, but reactive systems and EntityIndex only work in combination with the replace method

Read more comments on GitHub >

github_iconTop Results From Across the Web

25 Smart Performance Review Questions for Your Next ...
Performance Review Questions: Overall Performance · What accomplishments this quarter are you most proud of? · Which goals did you meet? Which ...
Read more >
Looking for Performance Review Questions? We Found ...
The 4 Best Self Evaluation Questions for Employees · How well does my company recognize my value? (Multiple choice) · What would have...
Read more >
25 Smart Performance Review Questions to Improve ...
Questions about overall performance · What accomplishments are you proud of since our last performance review? · What factors motivate you to get...
Read more >
60 Performance Review Questions for Employees and ...
Performance review questions: About the employee's overall performance · What accomplishments this quarter are you most proud of? · What are the ...
Read more >
25 Performance Review Questions to Start Using Today
13 top performance review questions · How would team members describe working with you? · What's one accomplishment you achieved because of your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found