Memory Usage (Font Rendering Engine)

For general discussion related FlowStone
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Memory Usage

Post by trogluddite »

Cheers Matti - that's good to know; I've often been tempted to use a custom font, especially for very small writing.
Seems odd that string -> ASCII should use so much memory!
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
matti
Posts: 55
Joined: Fri Sep 24, 2010 12:06 pm

Re: Memory Usage

Post by matti »

trogluddite wrote:Cheers Matti - that's good to know; I've often been tempted to use a custom font, especially for very small writing.
Seems odd that string -> ASCII should use so much memory!


Yeah, well it's not the conversion itself, as i still do it but with a different primitive. More of a "bug" on the parser. Or maybe It's just not ment for being used like that. In my schematic there's way over 2000 parsers. It all adds up and devs prob thought it would be used once or twice per schematic.

Anyhow it's not really needed in the custom font rendering thing. I uploaded the fixed rendering engine that uses way less resources for all FS users to enjoy:
https://app.box.com/s/vn8avfzav4yk738holyi


edit: Changed the original topic to reflect the findings..
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Memory Usage (Font Rendering Engine)

Post by trogluddite »

matti wrote:2000 parsers

Makes sense, the parser is probably storing partial matches, and maybe regular expression strings, inside the components. I just took a look one of my old SM projects that had a lot of parsers in it, and that's pretty greedy for memory too.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Post Reply