Game Development Community

Help! google.

by NEOK · in Torque Game Builder · 01/25/2006 (10:02 am) · 5 replies

I am facting the same problem as specified here, but can't access since I dont' have a proper permission.
Could anyone bring it to here?

It really itch me to get TGE license.

I got this problem trying to load a large PNG file with alpha channel, it doesn't crash without alpha channel.

#1
01/25/2006 (10:12 am)
Have you tried lowering you view distance?

edit -
I just noticed what forum you posted this in, it would have been better to post in the TGE public forums.


Scratch the Itch by buying the SDK!!:)
#2
01/25/2006 (10:25 am)
Hi.
The only useful info (for T2D) in that thread is to change the frame allocator buffer size.
If you open main.cc (around line 96), you will find this line of code:
FrameAllocator::init(3 << 20);      // 3 meg frame allocator buffer
Try to increase it in something bigger, like (6 << 20) or bigger.

Hope this helps.

Bye,
Jacopo
#3
01/25/2006 (11:30 am)
Doh I thought he had the demo for TGE and need help with it
#4
01/26/2006 (12:56 am)
Thanks Jacope.
But then, what happen if it gets increased to 6 mega? Does it influence on performance?
#5
01/26/2006 (1:40 am)
You are welcome. :-)

I really don't know if it will affect performance, but I don't think so... you are just changing the size of a memory buffer from 3 megabytes to 6 megabytes.
The suggestion to change the size of the framebuffer cames from Pat Wilson (a GG employee), so I bet that should be safe to do that.

I'll quote here the description that Pat gave about the frame allocator in that thread:
"FrameAllocater is used for memory which is being allocated for a short time then unallocated, what it does is allocate a big chunk, 3 megs by default, and then pass out little bits of it to whoever needs it.

To increase the frame size, look in main.cc, there should be a FrameAllocater call, the argument is ( 3 << 20 ), IE 3 megs. Increase it."


Bye,
Jacopo