Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick OpenGL, render loop
Qt 6.11 is out! See what's new in the release blog

QtQuick OpenGL, render loop

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sreich
    wrote on last edited by
    #1

    So I'm writing a game using the qtquick opengl under qml example..

    https://qt-project.org/doc/qt-5.0/qtquick/scenegraph-openglunderqml-main-qml.html

    So I have a Client, which creates a qquickview, main.qml, and main.qml i (stupidly) replaced the examples Squircle {} with Client {}.

    In other words it creates 2 clients, obviously not what i intended.

    I'd like to be able to specify my own render loop. But I've tried just a, within the main thread, while (1) { m_view->update(); processEvents(); }, but the beforeRendering never ever gets called.

    I don't like at all how QML's rendering loop is attaching itself into my code, i'm not sure how to fix it though.

    I did take a look at the FBO qml + gl example, but i'm not sure if that's what would solve my issues.

    I specifically hate all that SequentialAnimation crap in the opengl under qml example crap. It's very hacky and confusing on what's actually occurring..

    Suggestions?

    Software Developer for KDE

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved