Does ScummVM use hardware or software rendered cursors?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Locked
elvisish
Posts: 17
Joined: Tue Mar 12, 2013 5:43 pm

Does ScummVM use hardware or software rendered cursors?

Post by elvisish » Mon Aug 20, 2018 7:50 pm

I understand in Windows, the cursor can only be rendered a certain size when using hardware (GPU) rendered cursors, but most ScummVM games are displayed with cursor sizes that far exceed the limit. However, usually software cursors have some form of lag on them, or so I found. How are the cursors rendered on screen with ScummVM?

User avatar
sev
ScummVM Lead
Posts: 1967
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev » Mon Aug 20, 2018 11:11 pm

We draw everything manually. Just everything, cursor included. From the OS standpoint, the ScummVM window is just a graphics canvas/surface.


Eugene

elvisish
Posts: 17
Joined: Tue Mar 12, 2013 5:43 pm

Post by elvisish » Tue Aug 21, 2018 10:34 am

It's interesting since the cursor moves without any sort of latency which is usually accompanied with software drawn cursors (thimble weed park for instance would be software drawn and feels slightly laggy). It also always moves at full frame rate, rather than locked to the games frame rate (fatty bear's cursor moves fast, but the cake toppings move at a slower frame rate as the original did). Is this a decision to have non frame capped cursor motion by scummvm?

User avatar
sev
ScummVM Lead
Posts: 1967
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev » Tue Aug 21, 2018 10:56 am

There is no such thing as the frame rate in ScummVM since it is not an emulator.

Typically, engines call the screen update method 50-100 times per second. This provides the smoothness you see.


Eugene

Locked