openrw icon indicating copy to clipboard operation
openrw copied to clipboard

lineBuff and dbuff of DebugDraw can be converted to std::optional

Open ghost opened this issue 7 years ago • 2 comments

It should be quite simple task, but replacing usages can require some work.

ghost avatar Nov 02 '18 17:11 ghost

What is a purpose of this changes?

ArtemPopof avatar Feb 13 '19 21:02 ArtemPopof

They are not moved even once, when engine is running. So it's better to use static allocated memory and improve caching.

Also operating on objects is nicer than on ptrs.

ghost avatar Feb 13 '19 21:02 ghost