Jump to content

Fabien Comte

Members
  • Posts

    63
  • Joined

  • Last visited

Posts posted by Fabien Comte

  1. Hello,

    I want to open a great number of images (150 images that will use 25 % of my RAM when open) but ugfx returns errors after N open (dont' know N exactly). Is there a parameter to increase please ?

    Thank you

     

     

  2. 7 minutes ago, Joel Bodenmann said:

    Yes. that is correct. It cannot be disabled. It's a built-in feature. This allows for a much smaller and faster window manager. You cannot hide a background (container) without overwriting the area because you can't delete something from the display - you need to overwrite it. You can use doublebuffering as explained in my previous post to prevent things like this (there are many other additional things such as TE integration and so on).

    But if i do a full redraw of the screen with my black background, i want to avoid this white flash.

  3. On ‎16‎/‎03‎/‎2018 at 09:47, Joel Bodenmann said:

    Hi,

    The most common solution is (as you mentioned) double buffer. However, proper double buffering is very hard to implement and also requires hardware support. While µGFX can fully support double buffering (with the multiple displays API) we do also provide you with a more flexible way: Pixmaps. You can simply render your widget into a pixmap and then blit that pixmap to your real display. Pixmaps have certain advantages over real double buffering. The most notable is that you don't need two times the memory for the entire display area - a pixmap can be just a small portion of the screen.

    Other than that there are other things which vastly improve these sort of things such as anti-tearing-effect flags and so on. But all of that needs to be supported by the hardware.

    Do you have any exemple of multiple display API ?

  4. Hello,

    I tried to take a look to your proposal but i not found were you are speaking about.

    Another question on this theme please:

    When i change page from one with a black background to another one with a black background, i can see a very quick grey or white (maybe 1 frame). There is probably a fill function before background draw. Do you confirm ? If yes, how to disable it please ?

    Thank you.

     

  5. Hello, 

    I try to use a pixmap on a background without success.

    i have an image preloaded in myimage and i imagined that the next sequence load it in pixmap but it looks like that it reads pixmap. My question is how to load a file into a pixmap ?

    mypixmap = gdispPixmapCreate(CONTAINER_WIDTH, CONTAINER_HEIGHT);
     
     gdispImageOpenMemory(&myimage, gdispPixmapGetMemoryImage(mypixmap _selection));
  6. 7 / Background image display is slow on a 2 Ghz arm but i checked cache for image

    When i search images look loaded in guiResourcesManagerInit but they are also as binary buffer linked.

    Could you move "#ifdef ROMFS_DIRENTRY_HEAD" at the top of the include to speed up build when ROMFS_DIRENTRY_HEAD is not def (buffer looks useless in this case)

     

     

  7. Hello,

    This is a tiny bugs report:

    1 / GDISP_NEED_CONVEX_POLYGON is missing when you use Arrow button (same problem for rounded)

    2 / When you use a font or image somewhere and you remove it, application can crash if you goes back to the page where the image was used

    3 / When save crash, it kills your project (unable to reopen it). Please do an automatic backup before saving and remove it if save was a success

    4 / When you try to generate, it's often locked and you have to retry a second time

    5 / if you use an image with a name starting with a number, it creates wrong C variables

    Thank you.

×
×
  • Create New...