COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 07-22-2017, 12:12 AM   #1
hq9000
Human being with feelings
 
Join Date: Nov 2008
Posts: 99
Default IPlug/WDL: how to do framebuffered animation with controllable framerate?

Hi all,

What is the best way to achieve smooth animation with controllable framerate, which is cross-platform (Win/Mac)?

In MultiTarget example, we have a class IPeakMeterVert, which has

bool IsDirty() { return true;}

so as I see, the redraw is requested whenever the host decides to call this method (perhaps indirectly).

==========================
*this is the question N1*:
==========================
let's say we want to control how often the control is being redrawn. How do we do that in Iplug/WDL, preferably in transparently cross-platform way (we want this class to compile and work without changes for WIN VST and MACOSX AU.

Then the animation itself needs to be smoother. I guess the way forward is to draw the the pre-rendered updated version of control "in memory" and then quickly showing it on the screen.
==========================
*this is the question N2*:
==========================

how do we achive this way of smooth animation in WDL/Iplug?

Please forgive my ignorance in case if I'm asking abvious things. Probably I'm asking wrong questions whatsoever. Maybe there is another "right" way to approach this problem (smooth and cross-platform animation). Any hint/pointer to examples/docs whould be much appreciated.

Thanks.
hq9000 is offline   Reply With Quote
Old 07-23-2017, 07:23 AM   #2
Youlean
Human being with feelings
 
Youlean's Avatar
 
Join Date: May 2015
Location: Serbia
Posts: 654
Default

You can change framerate in IGraphics.cpp. That will give you smoother graphics.

#define DEFAULT_FPS 120
Youlean 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 09:57 PM.


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