mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 14:41:55 +00:00 
			
		
		
		
	[doc] install: cleanup ivshmem forumla formatting
This commit is contained in:
		@@ -70,11 +70,13 @@ Determining memory
 | 
			
		||||
You will need to adjust the memory size to be suitable for your desired maximum
 | 
			
		||||
resolution, with the following formula:
 | 
			
		||||
 | 
			
		||||
``width x height x pixel size x 2 = frame bytes``
 | 
			
		||||
.. code::
 | 
			
		||||
   
 | 
			
		||||
  width x height x pixel size x 2 = frame bytes
 | 
			
		||||
 | 
			
		||||
``total bytes / 1024 / 1024 = frame megabytes``
 | 
			
		||||
  total bytes / 1024 / 1024 = frame megabytes
 | 
			
		||||
 | 
			
		||||
``total megabytes + 10 = total size required``
 | 
			
		||||
  frame megabytes + 10 MiB = total megabytes
 | 
			
		||||
 | 
			
		||||
Where `pixel size` is 4 for 32-bit RGB (SDR) or 8 for 64-bit
 | 
			
		||||
(HDR :ref:`* <libvirt_determining_memory_hdr>`).
 | 
			
		||||
@@ -85,11 +87,13 @@ the value to.
 | 
			
		||||
 | 
			
		||||
For example, for a resolution of 1920x1080 (1080p):
 | 
			
		||||
 | 
			
		||||
``1920 x 1080 x 4 x 2 = 16,588,800 bytes``
 | 
			
		||||
.. code::
 | 
			
		||||
 | 
			
		||||
``16,588,800 / 1024 / 1024 = 15.82 MiB``
 | 
			
		||||
  1920 x 1080 x 4 x 2 = 16,588,800 bytes
 | 
			
		||||
 | 
			
		||||
``15.82 MiB + 10 MiB = 25.82 MiB``
 | 
			
		||||
  16,588,800 / 1024 / 1024 = 15.82 MiB
 | 
			
		||||
 | 
			
		||||
  15.82 MiB + 10 MiB = 25.82 MiB
 | 
			
		||||
 | 
			
		||||
You must round this value up to the nearest power of two, which for the
 | 
			
		||||
provided example is 32 MiB.
 | 
			
		||||
 
 | 
			
		||||
 Submodule repos/PureSpice updated: 2129e825ab...2a8d2ed8e5
									
								
							
		Reference in New Issue
	
	Block a user