Old 12-06-2018, 08:37 AM   #1
Dsharpmaj
Human being with feelings
 
Join Date: Oct 2018
Posts: 9
Default What exactly does gfx.update do?

And do I really need to call it?
Dsharpmaj is offline   Reply With Quote
Old 12-06-2018, 09:13 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,458
Default

It redraws the GUI window your script may have opened.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 12-07-2018, 07:33 AM   #3
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 608
Default

When you open a window with gfx.init and you draw into it, you need to call gfx.update or otherwise, your drawn-stuff will not be shown.
Especially with defer-scripts, this is important.

It has the great benefit, that you can draw your stuff first, before actually showing it.
Otherwise, when seeing every element drawn at the time of calling of the drawing-function, this would cause flickering graphics.
__________________
Ultraschall-API: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs for Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.