indigodarkwolf / box16

A fork of the official X16 emulator, converted to C++20 and with a bunch of features tweaked and added.
MIT License
41 stars 18 forks source link

-dump L(#lines) option. #71

Open FlightControl-User opened 1 year ago

FlightControl-User commented 1 year ago

In reference to #70 ...

But I suspect you could get a lot of performance wins just by formatting out to a larger buffer, say 8KB, and then writing out in bulk increments once it's filled to 4KB or something.

Have implemented this and want to send a new pull request. Just sorting out the memory buffering for the moment. Also, have extended the -dump functionality with an L option, to express the buffer length in lines ... Once it's in a good state i'll commit and share the code in my branch so you can have a look first before i pull request.