Effekseer icon indicating copy to clipboard operation
Effekseer copied to clipboard

use concept instead virtual function implement platform function

Open 9MW opened this issue 5 years ago • 4 comments

i used to port effekseer to other platform,i suggest better to use concept rather than virtual function,concept give more flexbilty .while i'm porting,convert platform specific struct to effekseer struct add a lot performance overhead,

9MW avatar Jan 14 '21 11:01 9MW

Effekseer supports C++14, so it cannot use concept

durswd avatar Jan 14 '21 16:01 durswd

how about template rather than virtual function in order to add more flexbilty

9MW avatar Feb 22 '21 13:02 9MW

the main cost is conversion between custom struct with effekseer.if use template to mitigate the operation would be better

9MW avatar Feb 23 '21 04:02 9MW

I don't imagine what code should I write. Please show an example code.

durswd avatar Feb 26 '21 10:02 durswd