M

Results 110 comments of M

> I would prefer some kind of lazy loading for the worst chunks. I mean for Heros Realm at least the Battle events chunks are >90% of the whole memory...

Given the results from #253, I believe we should just copy all the event stream from LDB/LMU directly into memory as is (except maybe encoding conversions) and decompress/interpret it on...

Lets try keeping the whole event stream as unserialized So with this patch: ```diff diff --git a/generator/csv/fields.csv b/generator/csv/fields.csv index 33137dd..a789529 100644 --- a/generator/csv/fields.csv +++ b/generator/csv/fields.csv @@ -127,8 +127,8 @@ CommonEvent,name,f,String,0x01,'',0,0,String...

> And the XML dump should still emit the real event commands. I use this feature. Should we repurpose this xml format as an output / debugging tool?

Here is some data on the breakup per section of the database. I generated this by hacking liblcf to only load a single database chunk. | Game | Actor |...

If I remove `EventCommand::string` by making it static, HH3 troop usage goes from 121.6MB to 69.8MB which is a 42% savings in memory. On my amd64 linux machine, `sizeof(EventCommand) ==...

Here is a WIP branch that implements an `RPG::String` and uses it for `EventCommands::string`. This string type stores a single pointer and behaves like a dynamically allocated `const char*`. https://github.com/fmatthew5876/liblcf/tree/string...

One more test before bed. Here is liblcf master build with `-D_GLIBCXX_USE_CXX11_ABI=0`. This is effectively like using my `RPG::String` everywhere. This macro enables the old pre-C++11 `std::string` which used copy...

I just tried this and don't get the crash. What version of the game do you see this? Could it be you're loading a save for the wrong version of...

Take a look at `Utils::TextNext` if you want to filter out RPG_RT escaped characters. You may be able to process the text in your `GetFullText()` function and throw out escaped...