mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
The Variant class is now meant to be used on the stack instead of allocated on the heap. As a result (and because of related changes), performance of Channels has roughly doubled when pushing and popping most types.
This commit is contained in:
@@ -43,7 +43,7 @@ class Message : public Object
|
||||
{
|
||||
public:
|
||||
|
||||
Message(const std::string &name, const std::vector<StrongRef<Variant>> &vargs = {});
|
||||
Message(const std::string &name, const std::vector<Variant> &vargs = {});
|
||||
~Message();
|
||||
|
||||
int toLua(lua_State *L);
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
private:
|
||||
|
||||
std::string name;
|
||||
std::vector<StrongRef<Variant>> args;
|
||||
std::vector<Variant> args;
|
||||
|
||||
}; // Message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user