OSDev.org

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Is GOP faster than VBE? How fast?
PostPosted: Sat Jan 29, 2022 5:59 am 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
from the page
https://wiki.osdev.org/GOP
i've learned that GOP and VBE has same problem - read or write to video memory is slow. but a lot of people agree that GOP is faster than VBE.
but is it true? how fast it is between VBE and GOP?

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: Is GOP faster than VBE? How fast?
PostPosted: Sat Jan 29, 2022 8:00 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
I think that framebuffer access speed has nothing to do with being initialized by VBE, GOP or even dedicated driver. It has more to do with cache policy and write combining. These are controlled in the CPU itself using MTRRs and page tables. PCIe graphics cards are usually affected more since data has to go over PCIe, which usually has more latency than system RAM. In general, you want fewer but longer bursts of data transferred, to maximize performance.


Top
 Profile  
 
 Post subject: Re: Is GOP faster than VBE? How fast?
PostPosted: Sun Jan 30, 2022 2:53 am 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
Exactly. Writing to video memory (or any PCI BAR) is slow in the sense that it has high latency - but the bandwidth of current iterations of PCIe should be more than enough (assuming that everything mentioned by pvc is set up correctly).

_________________
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].


Top
 Profile  
 
 Post subject: Re: Is GOP faster than VBE? How fast?
PostPosted: Sun Jan 30, 2022 3:56 pm 
Offline
Member
Member

Joined: Mon Jul 05, 2021 6:57 pm
Posts: 118
Korona wrote:
Exactly. Writing to video memory (or any PCI BAR) is slow

This could be seen as a nit-pick, but you're not talking about writing to a PCI BAR. You mean writing to the address mapped via a PCI BAR. A BAR is a register that controls an address range, not the address range itself. BAR = Base Address Register.

(Writing to a BAR itself may well also be "slow", but you don't need to do it after setting up the framebuffer).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 97 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