# HG changeset patch # User StephaneLenclud # Date 1411416208 -7200 # Node ID e63ba12d7a18330885049be79bc066652cdb0b56 # Parent ea9ccfdb5563e73e9612e0c5dfe323fd9c93aea2 HTPC documentation and optimization for GP1212A02. diff -r ea9ccfdb5563 -r e63ba12d7a18 FutabaGP1212A02.cpp --- a/FutabaGP1212A02.cpp Sun Sep 21 19:10:08 2014 +0200 +++ b/FutabaGP1212A02.cpp Mon Sep 22 22:03:28 2014 +0200 @@ -502,12 +502,17 @@ { //Send pixel directly into BMP box //BmpBoxDataInput(FrameBufferSizeInBytes(),iFrameNext->Ptr()); + + //This appears to be the fastest scheme when running on our HTPC //Send pixel data directly into the display window - //BmpDataInput(ETargetDisplayWindow,0x0000,EDirectionY, FrameBufferSizeInBytes(),iFrameNext->Ptr()); + BmpDataInput(ETargetDisplayWindow,0x0000,EDirectionY, FrameBufferSizeInBytes(),iFrameNext->Ptr()); + //Send pixel data first to Data Memory then copy into the selected BMP box //BmpDataInput(ETargetDataMemory,0x0000,EDirectionY, FrameBufferSizeInBytes(),iFrameNext->Ptr()); //BmpBoxDataMemoryTransfer(0x0000); - //Send pixel data first to Data Memory then copy into the selected BMP box, cycling through our Data Memory frmae + + //Send pixel data first to Data Memory then copy into the selected BMP box, cycling through our Data Memory frame +#if 0 BmpDataInput(ETargetDataMemory,iNextFrameAddress,EDirectionY, FrameBufferSizeInBytes(),iFrameNext->Ptr()); BmpBoxDataMemoryTransfer(iNextFrameAddress); iNextFrameAddress+=KFrameSizeInBytes; @@ -515,6 +520,7 @@ { iNextFrameAddress=0x0000; } +#endif //Cycle through our frame buffers //We keep track of previous frame which is in fact our device back buffer.