Trusted Software Excellence across Desktop and Embedded
Take a glance at the areas of expertise where KDAB excels ranging from swift troubleshooting, ongoing consulting and training to multi-year, large-scale software development projects.
Find out why customers from innovative industries rely on our extensive expertise, including Medical, Biotech, Science, Renewable Energy, Transportation, Mobility, Aviation, Automation, Electronics, Agriculture and Defense.
High-quality Embedded Engineering across the Stack
To successfully develop an embedded device that meets your expectations regarding quality, budget and time to market, all parts of the project need to fit perfectly together.
Learn more about KDAB's expertise in embedded software development.
Where the capabilities of modern mobile devices or web browsers fall short, KDAB engineers help you expertly architect and build high-functioning desktop and workstation applications.
Extensible, Safety-compliant Software for the Medical Sector
Create intelligent, patient-focused medical software and devices and stay ahead with technology that adapts to your needs.
KDAB offers you expertise in developing a broad spectrum of clinical and home-healthcare devices, including but not limited to, internal imaging systems, robotic surgery devices, ventilators and non-invasive monitoring systems.
Building digital dashboards and cockpits with fluid animations and gesture-controlled touchscreens is a big challenge.
In over two decades of developing intricate UI solutions for cars, trucks, tractors, scooters, ships, airplanes and more, the KDAB team has gained market leading expertise in this realm.
Build on Advanced Expertise when creating Modern UIs
KDAB assists you in the creation of user-friendly interfaces designed specifically for industrial process control, manufacturing, and fabrication.
Our specialties encompass the custom design and development of HMIs, enabling product accessibility from embedded systems, remote desktops, and mobile devices on the move.
Legacy software is a growing but often ignored problem across all industries. KDAB helps you elevate your aging code base to meet the dynamic needs of the future.
Whether you want to migrate from an old to a modern GUI toolkit, update to a more recent version, or modernize your code base, you can rely on over 25 years of modernization experience.
KDAB offers a wide range of services to address your software needs including consulting, development, workshops and training tailored to your requirements.
Our expertise spans cross-platform desktop, embedded and 3D application development, using the proven technologies for the job.
When working with KDAB, the first-ever Qt consultancy, you benefit from a deep understanding of Qt internals, that allows us to provide effective solutions, irrespective of the depth or scale of your Qt project.
Qt Services include developing applications, building runtimes, mixing native and web technologies, solving performance issues, and porting problems.
KDAB helps create commercial, scientific or industrial desktop applications from scratch, or update its code or framework to benefit from modern features.
Discover clean, efficient solutions that precisely meet your requirements.
Boost your team's programming skills with in-depth, constantly updated, hands-on training courses delivered by active software engineers who love to teach and share their knowledge.
Our courses cover Modern C++, Qt/QML, Rust, 3D programming, Debugging, Profiling and more.
The collective expertise of KDAB's engineering team is at your disposal to help you choose the software stack for your project or master domain-specific challenges.
Our particular focus is on software technologies you use for cross-platform applications or for embedded devices.
Since 1999, KDAB has been the largest independent Qt consultancy worldwide and today is a Qt Platinum partner. Our experts can help you with any aspect of software development with Qt and QML.
KDAB specializes in Modern C++ development, with a focus on desktop applications, GUI, embedded software, and operating systems.
Our experts are industry-recognized contributors and trainers, leveraging C++'s power and relevance across these domains to deliver high-quality software solutions.
KDAB can guide you incorporating Rust into your project, from as overlapping element to your existing C++ codebase to a complete replacement of your legacy code.
Unique Expertise for Desktop and Embedded Platforms
Whether you are using Linux, Windows, MacOS, Android, iOS or real-time OS, KDAB helps you create performance optimized applications on your preferred platform.
If you are planning to create projects with Slint, a lightweight alternative to standard GUI frameworks especially on low-end hardware, you can rely on the expertise of KDAB being one of the earliest adopters and official service partner of Slint.
KDAB has deep expertise in embedded systems, which coupled with Flutter proficiency, allows us to provide comprehensive support throughout the software development lifecycle.
Our engineers are constantly contributing to the Flutter ecosystem, for example by developing flutter-pi, one of the most used embedders.
KDAB invests significant time in exploring new software technologies to maintain its position as software authority. Benefit from this research and incorporate it eventually into your own project.
Start here to browse infos on the KDAB website(s) and take advantage of useful developer resources like blogs, publications and videos about Qt, C++, Rust, 3D technologies like OpenGL and Vulkan, the KDAB developer tools and more.
The KDAB Youtube channel has become a go-to source for developers looking for high-quality tutorial and information material around software development with Qt/QML, C++, Rust and other technologies.
Click to navigate the all KDAB videos directly on this website.
In over 25 years KDAB has served hundreds of customers from various industries, many of them having become long-term customers who value our unique expertise and dedication.
Learn more about KDAB as a company, understand why we are considered a trusted partner by many and explore project examples in which we have proven to be the right supplier.
The KDAB Group is a globally recognized provider for software consulting, development and training, specializing in embedded devices and complex cross-platform desktop applications.
Read more about the history, the values, the team and the founder of the company.
When working with KDAB you can expect quality software and the desired business outcomes thanks to decades of experience gathered in hundreds of projects of different sizes in various industries.
Have a look at selected examples where KDAB has helped customers to succeed with their projects.
KDAB is committed to developing high-quality and high-performance software, and helping other developers deliver to the same high standards.
We create software with pride to improve your engineering and your business, making your products more resilient and maintainable with better performance.
KDAB has been the first certified Qt consulting and software development company in the world, and continues to deliver quality processes that meet or exceed the highest expectations.
In KDAB we value practical software development experience and skills higher than academic degrees. We strive to ensure equal treatment of all our employees regardless of age, ethnicity, gender, sexual orientation, nationality.
Interested? Read more about working at KDAB and how to apply for a job in software engineering or business administration.
Qt 3D makes heavy use of threads, as a way to spread work across CPU cores and maximize throughput, but also to minimize the chances of blocking the main thread. Though nice on paper, the last case eventually leads to added complexity. Sometimes, there are just one too many threads.
In the past, we've been guilty of trying to do too much within Qt 3D rather than assuming that some things are the developer's duty. For instance there was a point in time where we'd compare the raw content of textures internally. The reason behind that was to handle cases where users would load the same textures several times rather than sharing one. This led to code that was hard to maintain and easy to break. Ultimately it provided convenience only for what can be seen as a misuse of Qt 3D, which was not the the original intention.
We had similar systems in place for Geometries, Shaders... Part of the reason why we made such choices at the time was that the border between what Qt 3D should or shouldn't be doing was really blurry. Over time we've realized that Qt 3D is lower level than what you'd do with QtQuick. A layer on top of Qt 3D would have instead been the right place to do such things. We've solved some of these pain points by starting work on Kuesa which provides assets collections.
In the past couple of Qt releases we've been trying to simplify the code where it had become overly complex for debatable convenience. For Qt 5.14 we have decided to rework the threading architecture.
Before we dive into what has changed and what we gain from it, let's first go over the architecture that was in place until 5.13.
Qt 3D Threading Architecture as of 5.13
The Main Thread
This is the Qt application thread where the Qt 3D Entity/Component scene tree lives.
The Aspect Thread
This is the thread in which Aspects live. Each Aspect is responsible for maintaining an internal backend tree that reflects the frontend tree. A messaging mechanism has been set up in order to maintain frontend and backend trees in sync. Most of these messages contain a property name as a string and a value as a variant.
The ThreadPool
Each frame, based on changes and content of its backend tree, and each aspect will get a chance to schedule work that needs to be performed:
The Render aspect will for instance launch jobs that prepare the content for rendering, load buffers, load textures ...
The Input aspect will look for pending input events and send messages to the frontend tree to notify it about any state change
The RenderThread
Pure Qt 3D Case
This is the thread tasked to submit the rendering commands that have been created previously by the render aspect's jobs. The idea is that submitting these commands in a dedicated thread allows to unlock the Aspect and Main threads so that we can prepare content for frame n + 1 while rendering frame n.
One thing to be noted however, this thread is only available when using "pure" Qt 3D, in other words when using Qt 3D without QtQuick and Scene3D.
Scene3D Case
When using Scene3D, we instead rely on the SceneGraph Thread (which can potentially be the same as the main thread) to ask for the rendering commands to be submitted.
Since the Scene Graph thread is outside of our control, when it asks for Qt 3D to submit commands it could be that the Render aspect jobs in charge of preparing said commands have yet to be completed. To handle that case, we would return early in the renderer and expect that when we're called again in the future, jobs would finally have completed.
This means that potentially Qt Quick and Qt 3D would not be rendering at the same refresh rate. This can be seen as good or bad depending on your use case:
If 3D content is just there but not critical, then having Qt 3D not block Qt Quick can be interesting for you. If on the other hand you want Qt Quick and Qt 3D to be synched, this was until recently not possible.
The Simulation Loop
The loop behind Qt 3D that drives aspects, rendering and synchronization:
1. We wait for the Renderer to be ready for the next frame
2. Synchronize the aspect's backend trees by distributing change messages from the frontend tree stored in the ChangeArbiter
3. Ask each aspect to launch jobs that need to be performed for the current frame
One job from the RenderAspect will notify the RenderThread that all RenderCommands have been prepared
4. We wait for all jobs to be completed
5. We wait for the next frame
Once RenderThread has all that's required for rendering, it calls proceedToTheNextFrame and does the graphics submission
This allows to start the next loop of the simulation loop while we are still rendering.
What has changed in 5.14?
As you can see, aspects are living in their own thread. The main reason for this is to allow Aspect to launch jobs and communicate while the main thread is blocked. This unfortunately forces to use string based messages to synchronize the trees. It also makes synching between threads to handle all cases quite difficult.
What have we done for Qt 5.14? Simply put, we've removed the Aspect Thread.
Why?
Well, what's the gain of having it? Even if the Aspect thread can spin freely while the main thread is blocked do we really benefit from this behavior?
From experience, in 90% of cases, we use Qt 3D with Scene3D. Which means that if the main thread were to be locked, Qt Quick wouldn't sync and Qt 3D wouldn't render anything.
So arguably, we have a thread that's making things more complex to handle a case that very few of us might benefit from. This benefit couldn't offset the difficulties that resulted from it:
Slow synching mechanism
Very hard to control Qt 3D from the outside
Lots of optimizations left on the table because it adds complexity to lots of areas (backend trees, string based messages, blocking threads to sync, hard to know what has changed...)
What do we gain from that?
This now means Aspects and the simulation loop are performed in the main thread.
Gains from that are:
1. We don't need to use messages to sync, we can just compare against the frontend nodes directly:
This removes lots of allocations, string comparisons
QVariant comparison was a huge performance hit because of the way it handles multithreading
Technically we could now go as far as not having a copy of the tree in the aspects
This should make caching commands a lot easier.
2. This allows to have a greater control over the simulation loop:
We can now decide whether Qt 3D should be in the driver seat or not
Control can now be manual, done by the user
Makes integrating Qt 3D with 3rd party engines a lot easier
Scene3D integration uses that approach.
3. Qt Quick and Qt 3D now run in sync at the same refresh rate
4. Should allow us to introduce more sync stages to avoid having to wait more than 1 frames to react to things like inputs, capture request...
5. Greatly simplifies startup and shutdown sequences.
What's next?
In a follow up article, we will see how Qt 5.14 was also modified to change the way the scene state get sync'ed between frontend and backend nodes, providing significant performance gains on very dynamic scenes.
Senior software engineer at KDAB, Paul is a Qt approver and active contributor to the Qt 3D module where he is one of the main developers. He has been developing Qt based C++ and QML applications since 2010 and has particular interest and expertise in OpenGL and GPU assisted computing. Paul holds a Master’s degree in Computer Science.