Re: [Development] Calling a function at frame-rate before rendering

2014-05-15 Thread raskolnikov
Hi! Just for the record: I solved the problem by combining a QAbstractAnimation and a QQuickItem. the later calls the "commit state" function of my model in the updatePolish() override, and the animation calls polish() on the first object on every updateCurrentTime(). This way my state is updated

Re: [Development] Calling a function at frame-rate before rendering

2014-05-14 Thread raskolnikov
Thank you a lot, that is a very comprenhensive response. > If you have GUI thread state, application logic and other stuff you can > call QQuickItem::polish() and reimplemnt QQuickItem::updatePolish() which > is called just before the QML tree is synced into the render thread. Indeed, this is GUI

Re: [Development] Calling a function at frame-rate before rendering

2014-05-14 Thread Gunnar Sletta
It depends on what your update state is... If you want to tick rendering state (OpenGL and Scene Graph stuff) then you can call QQuickWindow::update() and make a direct connection to QQuickWindow::beforeRendering() to advance the state on the render thread just before the scene is drawn. If y

[Development] Calling a function at frame-rate before rendering

2014-05-14 Thread raskolnikov
Hi guys! So... I am working on a project where the data model is written in a functional style and uses a "epochal" approach to move it's state forward... the details would probably bore you but the important thing is that it requires a tick() function to be called to make an updated world state v