Re: [hatari-devel] New option --disable-video and --benchmark

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On 23.02.2017 23:03, Nicolas Pomarède wrote:
> Le 23/02/2017 à 21:22, Eero Tamminen a écrit :
>> Hi,
>>
>> On 02/23/2017 08:16 PM, Nicolas Pomarède wrote:
>>> I just added 2 new options to Hatari's command line :
>>>
>>>  --disable-video : don't refresh the screen during emulation. Emulated
>>> screen is still updated into Hatari's internal buffer, but the result is
>>> never displayed on screen through SDL calls.
>>
>> You've documented the option as:
>>     --disable-video <bool> Run emulation without displaying video
>>
>> For consistency with other options, I think it should be either:
>>     --disable-video
>> or
>>     --video <bool>
>>
> 
> Hi
> 
> I thought about this, but --video sounded too generic to me, but why
> not, I have no opinion on this.
> 
>>
>>> This can be useful if you just want to listen to Hatari's sound without
>>> the extra cpu needed to display on screen (for example a music disk).
>>
>> I added frame skip feature to Hatari v1.1 to for this purpose.
>> It has even SDL GUI settings for forcing a larger than necessary
>> frame skip value, if one wants less CPU usage:
>> https://hg.tuxfamily.org/mercurialroot/hatari/hatari/raw-file/tip/doc/manual.html#Performance
>>
>>
>>
>> If the video option would skip Hatari window completely and
>> allow running Hatari on headless setups, then it would make
>> more sense to have video disabling as config file option.
> 
> I thought about running Hatari without any window at all, but then more
> code would be needed as it's SDL that handles keyboard shortcut (for
> example handle ctrl+c to exit Hatari).

FYI, you can also run Hatari without window by setting the
SDL_VIDEODRIVER variable to "dummy".

 Thomas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/