Open erizmr opened 1 year ago
Interesting, this indicates that we didn't handle data-oriented-class type correctly. I actually doubt that we've never treated data-oriented-class as type during compilation before.
Thanks for the reply. Just wondering how do you think/ how much effort is expected to put in if we would like to fix it?
hmmm, it's gonna take a while to implement that for data_oriented I'm afraid, however the alternative replacement you can seek for is ArgumentPack
: https://docs.taichi-lang.org/docs/master/argument_pack. Maybe you can consider rewrite your code with ArgumentPack
though
Describe the bug Different instances of the same data oriented class trigger re-compilation. I am wondering is it an expected behavior?
To Reproduce
Log/Screenshots It can be observed that
set_vel
is compiled 10 times, i.e., one for each instance.