Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ep:labs:05:contents:tasks:ex4 [2025/02/20 15:02]
cezar.craciunoiu [04. [30p] GPU Monitoring]
ep:labs:05:contents:tasks:ex4 [2026/03/31 14:00] (current)
radu.mantu
Line 6: Line 6:
 Follow the instructions to install the dependencies and build the project from the **README.md**. Follow the instructions to install the dependencies and build the project from the **README.md**.
  
-<note tip> 
 <​code>​ <​code>​
 $ git clone https://​github.com/​cs-pub-ro/​EP-labs.git $ git clone https://​github.com/​cs-pub-ro/​EP-labs.git
 $ cd EP-labs/​lab_05/​task_04 $ cd EP-labs/​lab_05/​task_04
 +</​code>​
 +
 +<note tip>
 +**Troubleshooting**
 +-----
 +If you get a GLFW error from ''​glfwCreateWindow()'',​ the most likely cause is that the maximum OpenGL version supported on your system does not meet the minimum requirement for the application. Note however that this minimum required version of //OpenGL 4.6 core// was chosen arbitrarily and you can change it.
 +
 +<code bash>
 +# note how the OpenGL core profile version is < 4.6
 +$ glxinfo | grep '​OpenGL core profile version'​
 +OpenGL core profile version string: 4.3 (Core Profile) Mesa 26.0.3-arch2.2
 +</​code>​
 +
 +Modify the ''​GLFW_CONTEXT_VERSION_MINOR''​ window hint in ''​main.cpp''​ from **6** to **3** (or whatever you've got). Do the same for the major version if yours is //way// behind any normal standard.
 +
 +Now the window will be created but the application will still crash during the shader compilation. Modify the first line in both the vertex and the fragment shader:
 +
 +<code diff>
 +-#version 460 core
 ++#version 430 core
 </​code>​ </​code>​
 </​note>​ </​note>​
Line 50: Line 69:
   * Left OY axis shows FPS as a continuous variable   * Left OY axis shows FPS as a continuous variable
   * Right OY axis shows time spent per event in **ms**   * Right OY axis shows time spent per event in **ms**
-  * OX axis shows the time of the simulation+  * OX axis follows ​the time of the simulation ​without any time ticks
   * OX axis has ticks showing the number of vertices for each event that happens   * OX axis has ticks showing the number of vertices for each event that happens
   * Every event marked with ticks on the OX axis has one stacked bar chart made of two components:   * Every event marked with ticks on the OX axis has one stacked bar chart made of two components:
Line 91: Line 110:
  
 <note tip> <note tip>
-If you use Nvidia, you can use **prime-run**. +If you use Nvidia, you can use [[https://​gist.github.com/​abenson/​a5264836c4e6bf22c8c8415bb616204a|prime-run]].
- +
-https://​gist.github.com/​abenson/​a5264836c4e6bf22c8c8415bb616204a+
  
 If you use AMD, you can use the **DRI_PRIME=1** environment variable. If you use AMD, you can use the **DRI_PRIME=1** environment variable.
ep/labs/05/contents/tasks/ex4.1740056565.txt.gz · Last modified: 2025/02/20 15:02 by cezar.craciunoiu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0