Yorlik

Results 21 comments of Yorlik
trafficstars

The initialize option works nicely. My VS version is the community edition before the current update, so - pretty recent. I didn't have time for another speed test yet. Will...

I did another speed test - it's still very slow when calling a lot into Lua - even without using breakpoints. And for some reason it didn't reliably show the...

I isolated the error in my vcode (used to work flawlessly in the past): ``` /// This first part works auto eventtype_test_table = solstate_.new_usertype( "TestEvent", sol::factories( &MessageFactory ) ); ///...

It seems my build works again in release mode with SOL_SAFE_USERTYPE=1 which leaves me with one question: Do the various SOL safeties have any runtime performance penalty or are they...

> > Do the various SOL safeties have any runtime performance penalty or are they just about compilation times? > > Some of them are definitely introducing runtime overhead. For...

So - the error lies here: https://github.com/ThePhD/sol2/blob/eba86625b707e3c8c99bbfc4624e51f42dc9e561/include/sol/usertype_container.hpp#L527-L543 The upper code branch compiles on debug and on release, while the lower branch for my code leads to an error in release...

Just for completeness - wondering if it is the member I am trying provide as "arg": ``` std::vector args { }; ``` and ``` using vardata = std::variant< // /*...

So after removing the shared_ptr from the variant and removing the shared_string_table, now the compiles work without safeties again. But I don't really understand it - I'd love to have...

I tried something more intuitively than knowing what I was doing. I changed this line of code: https://github.com/ThePhD/sol2/blob/eba86625b707e3c8c99bbfc4624e51f42dc9e561/include/sol/usertype_container.hpp#L541 into this: ``` return *stack::unqualified_get(L_, 1); ``` And my sorrows went away....

I resorted to asking ChatGPT and that's the answer I got. Is this correct or nonsensical? It kinda makes sense to me. Can someone chime in who really understands what's...