class ENGINE_DLLEXPORT IRenderingDevice : public BaseObject<>
{
public:
...
virtual void RenderWorld(World* world) = 0;
};
This is our current IRenderingDevice interaface for engine. I we want to make const World* world in virtual void RenderWorld(World* world) = 0; it requiere us to make const correct time retrieval from TimeSystem.
Now when we add cost to world the refactoring changes have dependencies in TimeSystem that influence UpdatePhase.
Anyways there should be also SystemTime in ex. nanosecond that is flowing, available during rendering. It would allow for simplest profiling.
This is our current
IRenderingDeviceinteraface for engine. I we want to makeconst World* worldinvirtual void RenderWorld(World* world) = 0;it requiere us to make const correct time retrieval from TimeSystem.Now when we add cost to world the refactoring changes have dependencies in TimeSystem that influence UpdatePhase.
Anyways there should be also SystemTime in ex. nanosecond that is flowing, available during rendering. It would allow for simplest profiling.