flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > 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
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
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: 2149
Location: Estonia
@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: 3434
Location: Bulgaria

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: A48DEF727DF44C3B5C2E576B65021F1A45D8FA52E2F8E257F1CAE148BBADB162FDF7820BD1F9
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.