How does a computer draw anything to the screen at the lowest level (nothing about external libraries like X11)? Are there supposed to be assembly commands that do this? How exactly does the CPU control what appears on the screen?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Typically there is an area of memory called frame buffer in your video card. Writing a value there means to establish the color value of a pixel.
You can consider a frame buffer like a 2D array, where each bit represent a pixel on the screen. To represent colors are used different levels of buffer. Today a common frame buffer has 24 level (8 for each RGB color component) and allow the defenition of 2^24 possible colors.
Nowadays generally the access to the frame buffer occurs through the GPU for perforances issues: even if it possible for the CPU to perform this task, it’s quite expensive.