- Messages
- 814
- Country
Hi everyone,
Is 2D2 gauge (written for FSX) taking advantage of graphics acceleration hardware?
I've done a lot of GDI+ custom gauge programming, and all in all, I'm quite happy with it. However, lately I've noticed some major bottlenecks and FPS losses, and I was wondering if anyone has any experience with what NOT to do. In particular, a bitmap stretching is a huge no-no, as the rescaling of bitmaps in GDI+ is a very resource intensive process. In general, I've been trying to get away from using bitmaps for simple MFD-type line art. However, I've noticed also that a serious bottleneck can be a RotateTransform() call, especially in a container consisting of text.
Case in point: I tried moving away from bitmap-type compass wheel with a mask "window" (HSI) to a code-generated HSI "card" set consisting of a circle, 36 tick marks and 36 10-degree labels. Creating this in GDI+ requires 36 RotateTransform() calls on the label containers, and this seems to draw a rather large FPS penalty.
So, I was wondering if a move to D2D would speed things up? Does anyone have any experience or benchmarks with this?
Is 2D2 gauge (written for FSX) taking advantage of graphics acceleration hardware?
I've done a lot of GDI+ custom gauge programming, and all in all, I'm quite happy with it. However, lately I've noticed some major bottlenecks and FPS losses, and I was wondering if anyone has any experience with what NOT to do. In particular, a bitmap stretching is a huge no-no, as the rescaling of bitmaps in GDI+ is a very resource intensive process. In general, I've been trying to get away from using bitmaps for simple MFD-type line art. However, I've noticed also that a serious bottleneck can be a RotateTransform() call, especially in a container consisting of text.
Case in point: I tried moving away from bitmap-type compass wheel with a mask "window" (HSI) to a code-generated HSI "card" set consisting of a circle, 36 tick marks and 36 10-degree labels. Creating this in GDI+ requires 36 RotateTransform() calls on the label containers, and this seems to draw a rather large FPS penalty.
So, I was wondering if a move to D2D would speed things up? Does anyone have any experience or benchmarks with this?