flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > Menuet OS & emulation: Sluggish, and high CPU load

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 18 Feb 2012, 18:24
I agree with JohnFound, but there are other important things a hobby OS needs, like not crashing.
From my tests
MemuetOS
sol os
MyOs
All run at the same speed when running only one program.
KolibriOS ran mark amount faster on bochs and virtualbox, but it also crashed twice, once so bad i needed to reboot linux.
I may of just been unlucky.

So where do you draw the line ?.
Post 18 Feb 2012, 18:24
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 19 Feb 2012, 20:56
Update, it seems i was using a 3 year old ver of KolibriOS, the latest ver runs fine without crashing.
But still just as fast, maybe they have a very fast 24bpp buffer to screen, as thats the mode most enulators use, but real hardware uses 32bpp vesa.
Post 19 Feb 2012, 20:56
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 20 Feb 2012, 11:17
@Dex4u: I've discovered that in QEMU you cannot find a 32bpp mode. Actually MenuetOS could have only optimized code for 32bpp. Its a single DWORD write/read per pixel and it can be vectorized Q, DQ, QQ etc.
In the real world we need to support 24bpp modes which conserve space, but coding gets trickier. Should I do a WORD+BYTE transfer or a BYTE+BYTE+BYTE. Maybe if I transfered 4 pixels, I could write 12 bytes in 3 DWORDs. 16 bytes wide XMM fits 5 pixels and 1/3 of the 6th.

Getting this wrong is really easy and like you suggested - "very fast 24bpp buffer to screen" - probably is due to some research and optimizations.

Everything can be optimized (maybe not some NOPs Smile), lets hope we'll see faster graphics performance from MenuetOS in the near future.
Post 20 Feb 2012, 11:17
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 20 Feb 2012, 12:23
Madis731 wrote:
I've discovered that in QEMU you cannot find a 32bpp mode.


I am using QEMU through "QEMU manager" front end. So, there is a hardware manager and I am able to choose between "Cirrus Logic GD5446", "Standard VGA" and "VMWare SVGA-II" video cards. Only GD5456 doesn't support 32bpp modes. All others does.
I tested KolibriOS with different modes and graphic addapters (including 320x200x8bpp and 640x480x4bpp) and I can't see any difference in the speed between them. (although it has sluggish response sometimes.)

_________________
Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9
Post 20 Feb 2012, 12:23
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
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
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.