FTDI Community

General Category => Discussion - Software => Topic started by: NW27 on June 26, 2018, 11:25:49 PM

Title: FT81x and available free GRAM
Post by: NW27 on June 26, 2018, 11:25:49 PM
Hi,
How can I determine how much available free GRAM I have in the FT81x GPU?
Is there a call to the GPU that I can perform that shows me some stats?

Thanks,
Neil.
Title: Re: FT81x and available free GRAM
Post by: Rudolph on June 27, 2018, 01:02:53 PM
There is no such info available, you need to keep track of GRAM in your application. For the FT8xx this is just a buffer and you tell it to put what where and from where to use it.

The only function I know that helps with that a bit is CMD_GETPTR which returns the end-address of the last data processed by CMD_INFLATE.
But for images that does not help much.
With a known resolution you already can calculate the size in GRAM.
And with some image loaded from somewhere like a SD-Card the uncompressed size is not really helpfull without the width, height and format.

A similar function would be CMD_GETPROPS for CMD_LOADIMAGE but this one does not return the end-address.
But you can calculate that with the format supplied to CMD_LOADIMGE and the resolution.

Anyways, it takes a little planning, maybe a spreadsheet.
Title: Re: FT81x and available free GRAM
Post by: FTDI Community on June 27, 2018, 02:46:09 PM
Hello,

EVE Screen Designer:
http://www.ftdichip.com/Support/Utilities.htm#ESD4 (http://www.ftdichip.com/Support/Utilities.htm#ESD4)

and

EVE Screen Editor:
http://www.ftdichip.com/Support/Utilities.htm#EVEScreenEditor (http://www.ftdichip.com/Support/Utilities.htm#EVEScreenEditor)

Will give you indications on how much RAM_DL and RAM_G is being used, this may be useful when trying to ascertain available RAM from a given screen.

Best Regards,
FTDI Community