Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411490 Posts in 69371 Topics- by 58428 Members - Latest Member: shelton786

April 24, 2024, 08:36:30 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityTownhallForum IssuesArchived subforums (read only)TutorialsHandle-based entity management in C++11/C++14
Pages: [1]
Print
Author Topic: Handle-based entity management in C++11/C++14  (Read 884 times)
vittorioromeo
Level 2
**



View Profile WWW
« on: December 02, 2014, 06:23:41 AM »

"If I want to store entities contiguously to improve efficiency, how can I keep track of them?"





In the video, I show two possible ways of dealing with entity storage and management:
  • Storing entities on the heap. Entities are easy to keep track of, but iteration is inefficient. Very easy implementation.
  • Storing entities contiguously. Iteration is cache-friendly, however it is hard to keep track of specific instances. Complex implementation with custom handles.

Hope you find some of the concepts in the video interesting!
I'm looking forward to your feedback and to more ideas on entity management.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic