OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 10:40 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: How to make the GUI of my OS?
PostPosted: Fri Sep 11, 2020 8:07 am 
Offline
Member
Member

Joined: Thu Apr 30, 2020 6:03 am
Posts: 55
Hello, I have advanced in the construction of the gui, but I am at a crossroads
The window server must be the one who requests the shared memory from the kernel and then deliver it to the client for
that it can render its own components ?.
What happens when you resize the window, destroying this old memory area and creating a new one is a bit
slow, in terms of shared memory ?.
It is possible that the size of the current screen resolution is requested and thus avoid having to change the size?
it consumes a little more shared memory.

For now I have managed to create the windows, maximize them, minimize them, move them, resize them, all this without using
the shared memory, just doing the memory request on the heap (delete and new), and it works fine, but when I do it with
shared memory is where the problem is.

Does anybody have any suggestions?


Top
 Profile  
 
 Post subject: Re: How to make the GUI of my OS?
PostPosted: Sun Sep 13, 2020 5:48 pm 
Offline
Member
Member

Joined: Thu Apr 30, 2020 6:03 am
Posts: 55
This is a sample of how it evolves, so far only the one created the windows server,
in the end I opted for the window server to be the one who creates the shared buffer for the window to do the
rendering of its components in the client, the components are rendered in the front
buffer (not shared) and when it is necessary to update the content on the screen, copy the content to the back
buffer (shared buffer) and sends to the server that this memory zone has changed
and then it is displayed on the screen.
I would really like to hear those who have created the gui of their systems what have been their
ideas regarding this, greetings


Attachments:
gui1.png
gui1.png [ 124.52 KiB | Viewed 1069 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 39 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group