Recommended Posts


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?

Share this post

Link to post
Share on other sites

Hi I think you could go for DirectX (11) or OpenGL, I will stick with the last as supports multiple platforms. You should be able to reach the 60FPS in both APIs, it will only depend on the amount of work you push to the GPU and how well is everything programmed :) . Same for pixel perfect, it should be doable in both.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now