I left my program open for 9 hours and it used up 700mb of ram, could someone review it?
Gan via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jan 27 23:21:23 PST 2015
On Wednesday, 28 January 2015 at 02:50:11 UTC, FG wrote:
> On 2015-01-28 at 03:04, Vladimir Panteleev wrote:
>> What type is CircleShape?
>> If it is a class, or otherwise contains pointers, then this is
>> probably the source of your problem.
>
> class CircleShape : Shape is defined in
> dsfml.graphics.circleshape, so there's no going around this...
>
>> - Building your program for x86_64 - 64 bits of address space
>> will make fake pointer pinning very unlikely
>
> The binary included in the zip was 64-bit, so fake pointers
> shouldn't be that much of a problem.
>
> Oh, and I take back what I said about suspecting that
> SpaceBackground.stack grows infinitely. It probably doesn't. I
> don't have DSFML installed, and therefore couldn't recreate the
> behaviour.
Is there a way to set a variable to be cleared in the new GC
collection or to forcibly release a variable?
I have an inkling that it might be the Sprite class or something
with the RenderTextures.
More information about the Digitalmars-d-learn
mailing list