Jump to content
Sign in to follow this  
x_bennY

Faster way to show animated gif on screen

Recommended Posts

Hey, i'm trying to display a big animated gif on the screen (1440x1080 15Mb), i already tried this UDF from trancexx:

but it is too slow... it takes around 15s to display it, there is another alteranative to do this thing? maybe with GDI.. i don't know. It's curious because the windows image previewer shows it instantly.

Edited by x_bennY

Share this post


Link to post
Share on other sites

I have always felt good with the Mrs. trancexx's UDF, however, alternatively, you could try to embed a BrowserControl in your GUI and use it to display your animated gif.
I'm curious, let us know if there are any differences in performance ...

Local $hGUI = GUICreate("", 1440, 1080, 0, 0) ; Create a GUI
Local $oIE = ObjCreate("Shell.Explorer.2") ; Create a BrowserControl
GUICtrlCreateObj($oIE, 0, 0, 1440, 1080) ; Place the BrowserControl on the GUI
GUISetState() ;Show GUI

; use this syntax if your gif is on an url
$oIE.navigate('https://cdn-learn.adafruit.com/assets/assets/000/058/692/original/3d_printing_cad-animation.gif?1533655361')
; $oIE.navigate('https://media.giphy.com/media/rhWj2qCGOBhiE/giphy.gif')

; use this syntax if you have a local file instead
; $oIE.navigate('file:///' & @ScriptDir & '\MyAnimated.gif')

MsgBox(0, 'Pause', "Hit OK end")

 

Edited by Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites

Hey @Chimp, using browser is faster, but it uses too much CPU and GPU, i'm trying use this one from JScript:

 

It's seems it solved my problem, it's faster and do not use to much CPU and GPU, but i'm doing another tests...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...