ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > General Discussion > Does ScummVM use hardware or software rendered cursors?
Does ScummVM use hardware or software rendered cursors?
  Author    Thread This topic is locked: you cannot edit posts or make replies.
elvisish



Joined: 12 Mar 2013
Posts: 17
Does ScummVM use hardware or software rendered cursors? 

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?

 Reply with quote  
Post Mon Aug 20, 2018 7:50 pm 
 View user's profile Send private message
sev
ScummVM Lead


Joined: 21 Sep 2005
Posts: 1964
 

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


Eugene

 Reply with quote  
Post Mon Aug 20, 2018 11:11 pm 
 View user's profile Send private message Visit poster's website
elvisish



Joined: 12 Mar 2013
Posts: 17
 

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?

 Reply with quote  
Post Tue Aug 21, 2018 10:34 am 
 View user's profile Send private message
sev
ScummVM Lead


Joined: 21 Sep 2005
Posts: 1964
 

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

 Reply with quote  
Post Tue Aug 21, 2018 10:56 am 
 View user's profile Send private message Visit poster's website
  Display posts from previous:      
This topic is locked: you cannot edit posts or make replies.

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge