MySchoolEngine / GLEngine

The goal of this repository is to build rendering focused game engine. Feel free to join me and extend this project.
https://myschoolengine.github.io/GLEngine-Documentation/
Other
21 stars 1 forks source link

Get rid of shared ptr in ECS #170

Open RohacekD opened 2 years ago

RohacekD commented 2 years ago

Describe the bug The usage of shared ptr in ECS was a great simplification for the beginning of this project. But as the project grows it proves itself to be a huge ball on a chain. I would like to get rid of this part of the code. Alongside it, we will need to rethink how dependencies are being handled in components. Do I really need a parent pointer inside the components themselves?

A lot of those problems comes from the fact that components right now are handling multiple things. They should take care of their functionality but should not care about GPU resources loading/streaming etc.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.