Search found 2 matches
- Sat Apr 23, 2022 1:16 pm
- Forum: Support and Development
- Topic: Is multi-thread a ram hog, or is this a memory leak?
- Replies: 5
- Views: 1734
Re: Is multi-thread a ram hog, or is this a memory leak?
Two things: - All löve threads start their own Luajit virtual machine, meaning their own separate lua instance. These can't share lua types between each other without copying everything, so you passing a table of size 100 000 to 9 threads means you're duplicating the contents 9 times... - Since you...
- Thu Apr 21, 2022 9:39 am
- Forum: Support and Development
- Topic: Is multi-thread a ram hog, or is this a memory leak?
- Replies: 5
- Views: 1734
Is multi-thread a ram hog, or is this a memory leak?
I'm trying to lrean about mutli-threading and I think I found a bug working with tables. It seems to to have a memory leak when iterating though table and setting is values. When I take out the table I get no memory leak, and my ram don't shoot up using 32 GB the "the max of my computer " ...