- Messages
- 820
- Country
Hi all,
I have a gauge DLL with several gauges inside. This gauge DLL was developed using GDI+ template and then applied multi-threading code as in the D2D gauge template, both templates available in the resources section. Everything is working as advertised. Then I added a new gauge which seemed to be graphically intensive (circular gradient fills with alphas), and it bogged the whole gauge rendering speed down noticeably. Note, the whole sim runs fine, but the gauge display refresh went from the default 18hz down to, I'd say, about 7-8 Hz. So - seeing this, I decided to separate this "bad" gauge from the rest of the "good" gauge into its own DLL. They both render into virtual cockpit textures, and each has its own [VCockpit0n] entry in panel.cfg.
However, I am still seeing the frame rate drain, as before, on both gauges.
My question is, I was expecting that the "bad" gauge would be a separate drawing process and run at its own refresh rate, and the "good" gauge would be allowed to run at its own merry 18hz. What am I doing wrong?
I have a gauge DLL with several gauges inside. This gauge DLL was developed using GDI+ template and then applied multi-threading code as in the D2D gauge template, both templates available in the resources section. Everything is working as advertised. Then I added a new gauge which seemed to be graphically intensive (circular gradient fills with alphas), and it bogged the whole gauge rendering speed down noticeably. Note, the whole sim runs fine, but the gauge display refresh went from the default 18hz down to, I'd say, about 7-8 Hz. So - seeing this, I decided to separate this "bad" gauge from the rest of the "good" gauge into its own DLL. They both render into virtual cockpit textures, and each has its own [VCockpit0n] entry in panel.cfg.
However, I am still seeing the frame rate drain, as before, on both gauges.
My question is, I was expecting that the "bad" gauge would be a separate drawing process and run at its own refresh rate, and the "good" gauge would be allowed to run at its own merry 18hz. What am I doing wrong?