Hi,
I'm making a program which displays simple 2D animations (think text and images scrolling over the screen) and I'm wondering what API would be best to use. Two important factors here are 1) being pixel perfect 2) never miss a frame, always 60 FPS.
My target is primarily Windows (7 and newer) but being cross-platform would be a plus.
I started with GDI (i e, the normal Windows thing) which is good from a pixel perfect perspective, but has a hard time reaching 60 FPS.
I have started to look into OpenGL but I'm not sure it's the right choice w r t being pixel perfect.
As for never missing a frame, would DirectX be better due to its swapchain feature? (Input lag is not an issue here so a few frames in-flight would not hurt.)
I guess Vulkan is a bit overkill and the amount of machines not supporting Vulcan is a big minus at this point.
What about web technologies such as WebGL (or 2D Canvas) + CEF (Chromium Embedded Framework)? If that is smooth enough, that would also be a very interesting option.
What do you think?
↧