Pretty plugins' functions calling
#5
(01-15-2018, 01:19 PM)xoft Wrote: Compared to calling within a single plugin, it will be much worse. It's not about the Lua plumbing that you put together, it's about the actual inter-plugin call, which is pretty expensive - everything needs to get serialized, wrapped to C++, lock up a mutex for the other Lua state, find the function there, deserialize, call it, and then back the same way for the return values. Wth the mutex locking, it could even potentially create a deadlock.

Ok, I know. But it will not much worse than just calling cPluginManager:CallPlugin, I think. This hack is just pretty plugins' function calling, not perfomance hack.
Reply
Thanks given by:


Messages In This Thread
Pretty plugins' functions calling - by TC1061 - 01-13-2018, 03:46 PM
RE: Pretty plugins' functions calling - by xoft - 01-14-2018, 09:12 AM
RE: Pretty plugins' functions calling - by TC1061 - 01-15-2018, 03:07 AM
RE: Pretty plugins' functions calling - by xoft - 01-15-2018, 01:19 PM
RE: Pretty plugins' functions calling - by TC1061 - 01-15-2018, 01:45 PM



Users browsing this thread: 4 Guest(s)