bupticybee / TexasSolver

🚀 A very efficient Texas Holdem GTO solver :spades::hearts::clubs::diamonds:
https://bupticybee.github.io/texassolver_page
GNU Affero General Public License v3.0
1.8k stars 312 forks source link

how can i solve the problem of save Json file(river strategy cannot work)) #169

Open l13985129543 opened 1 year ago

l13985129543 commented 1 year ago

appreciate for your project!but how can i save the Json file for the river actions?(range2 works,but range3 will out of memory,my coding env is Windows+qt5.15) please help!

bupticybee commented 1 year ago

set "dump_round" to 3 will solve the proble, if you are using gui, tune it in setting.

If you are encountering OOM when dumping the strategy file, it's a bug. Sorry but there is nothing can be done at this point of time.

nguyenviettuan96 commented 1 year ago

hi bupticybee is that ok to save json 3 rounds for short deck

bupticybee commented 1 year ago

hi bupticybee is that ok to save json 3 rounds for short deck

Yeah that's okay for sure, but it would become very slow.

nguyenviettuan96 commented 1 year ago

hi bupticybee is that ok to save json 3 rounds for short deck

Yeah that's okay for sure, but it would become very slow.

I look your code at retConvertJson func, which is recursion. That is a reason for slowing. So what I can do to reduce time is that changing json to dictionary( map in c++). What do u think a bout that

AlexBuathier commented 7 months ago

set "dump_round" to 3 will solve the proble, if you are using gui, tune it in setting.

If you are encountering OOM when dumping the strategy file, it's a bug. Sorry but there is nothing can be done at this point of time.

when we try to record with the river the RAM fills indefinitely until reaching OOM. I solve a hand that requires 15GB of RAM and when the dump starts, the RAM fills up indefinitely until it reaches my 96GB

Is there a way to get around this memory leak? (I use only console version)

image