UniLua icon indicating copy to clipboard operation
UniLua copied to clipboard

[Question]请问C#端的call是一个expensive的操作吗?

Open sesky4 opened this issue 7 years ago • 1 comments

比如用lua实现一个monobehaviour,在c#端每帧调用call("update"),这样的对象存在几百个,这样的模型是否可行?

sesky4 avatar Mar 01 '18 06:03 sesky4

我觉得这个问题应该这样算,比如调用中间层开销为A ms,被调用的函数真正执行时间 B ms,只要 A << B,那么这样的方式就是可以接受的,和数量关系其实不太大

2018-03-01 14:17 GMT+08:00 Bpaddyswk [email protected]:

比如用lua实现一个monobehaviour,在c#端每帧调用call("update"),这样的对象存在几百个,这样的模型是否可行?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xebecnan/UniLua/issues/64, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXjf1ZaT9H2HN5SiDv4g5dOChyZ0jU-ks5tZ5JxgaJpZM4SX0Bu .

loadingcn avatar Mar 02 '18 01:03 loadingcn