fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(gta/core): dynamic pool resizing

Open duk-37 opened this issue 4 years ago • 5 comments

A very preliminary attempt at abusing virtual memory to allow for dynamically-"resizable" pools. At the moment eligible pools need to be manually specified with a hash and size/growth policies.

Can be enabled by passing -poolhacks as a command line option.

Note that there's still a fixed upper limit, but it can be raised much higher because the actual memory is only committed on an as-needed basis.

Ideally we get this working with the TxdStore pool but that needs me to either:

  1. Hardcode its location somehow
  2. Figure out how to exclude pre-allocated pools from pool hackery and have reasonable defaults

duk-37 avatar Apr 23 '22 07:04 duk-37

duk doing stuff again!!!! no way

hjklwasntavailable avatar Apr 23 '22 10:04 hjklwasntavailable

🙂 image

duk-37 avatar Apr 24 '22 16:04 duk-37

note: above is not fully working yet, streaming stuff also needs hashmap resize stuff

duk-37 avatar Apr 24 '22 23:04 duk-37

note: above is not fully working yet, streaming stuff also needs hashmap resize stuff

2802 has little space for extra txd Is it possible to have 105500 txd poolsize?

antigonos7 avatar Apr 09 '23 04:04 antigonos7

sincere congratulations to everyone on the fivem team :)

duk-37 avatar Aug 11 '23 21:08 duk-37