Old 12-06-2018, 08:37 AM   #1
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
Human being with feelings
Xenakios's Avatar
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,451

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

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.
Lua Coders of the world: UNITE!
This Saturday, 11am NewYorkCity time, head over to this thread:
mespotine is online now   Reply With Quote

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 11:38 AM.

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