diff --git a/kria-cluster-3d-demo/main.cpp b/kria-cluster-3d-demo/main.cpp index c298285a562076b833bd9b008dff38ec031873c7..5c2b0eca2444a22604fba8db923ea201f3e5f69e 100644 --- a/kria-cluster-3d-demo/main.cpp +++ b/kria-cluster-3d-demo/main.cpp @@ -66,6 +66,8 @@ int main(int argc, char *argv[]) QSurfaceFormat::setDefaultFormat(openGLFormat); #endif + qputenv("QML_DISABLE_DISK_CACHE", "true"); + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(argc, argv); diff --git a/kria-cluster-3d-demo/presentation/mainPresentation.uip b/kria-cluster-3d-demo/presentation/mainPresentation.uip index 6594cf7b824905bfd4117eba620a37f21684f34b..d67d70664bb403e62150684548a15031223ec971 100644 --- a/kria-cluster-3d-demo/presentation/mainPresentation.uip +++ b/kria-cluster-3d-demo/presentation/mainPresentation.uip @@ -199,7 +199,7 @@ - + @@ -658,7 +658,7 @@ - + 0 100 0 0 diff --git a/kria-cluster-3d-demo/qml/main.qml b/kria-cluster-3d-demo/qml/main.qml index 34cb14d49de88e3a50a301e7d4ec1a0ac234fd3d..968f7aa196b7ffafb48c7e9ac6200e3097c6e490 100644 --- a/kria-cluster-3d-demo/qml/main.qml +++ b/kria-cluster-3d-demo/qml/main.qml @@ -148,10 +148,14 @@ Item { qmlStreams: [ QmlStream { presentationId: "navigationStream" + // Load at start and set active & visible. Otherwise causes problems + // with macOS. Loader { id: contentStream - active: false - source: "" + active: true + visible: true + source: "qrc:/Navigation.qml" + asynchronous: false } } ] @@ -165,6 +169,8 @@ Item { // Hack. We need to draw something in QML in each frame to minimize the jamming of // Studio3D content. + /* + // This seems to mess up QML streaming for macOS. Enable if target device jams a lot. property bool direction: false onFrameUpdate: { direction = !direction; @@ -173,6 +179,7 @@ Item { else studio3D.x -= 0.1; } + */ } OverlayContainer {