mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-11-04 09:02:14 +00:00 
			
		
		
		
	Unload frame when not needed.
This commit is contained in:
		@@ -13,8 +13,6 @@ ShaderEffect {
 | 
				
			|||||||
    property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize
 | 
					    property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize
 | 
				
			||||||
    property real shadowLength: 0.5 * screenCurvature * Utils.lint(0.50, 1.5, _ambientLight)
 | 
					    property real shadowLength: 0.5 * screenCurvature * Utils.lint(0.50, 1.5, _ambientLight)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    visible: screenCurvature != 0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    fragmentShader: "
 | 
					    fragmentShader: "
 | 
				
			||||||
        #ifdef GL_ES
 | 
					        #ifdef GL_ES
 | 
				
			||||||
            precision mediump float;
 | 
					            precision mediump float;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -481,10 +481,14 @@ Item {
 | 
				
			|||||||
                 "gl_FragColor = vec4(finalColor, qt_Opacity);" +
 | 
					                 "gl_FragColor = vec4(finalColor, qt_Opacity);" +
 | 
				
			||||||
             "}"
 | 
					             "}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         NewTerminalFrame {
 | 
					         Loader {
 | 
				
			||||||
             anchors.fill: parent
 | 
					             anchors.fill: parent
 | 
				
			||||||
 | 
					             active: screenCurvature !== 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					             sourceComponent: NewTerminalFrame {
 | 
				
			||||||
                 blending: true
 | 
					                 blending: true
 | 
				
			||||||
             }
 | 
					             }
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         onStatusChanged: {
 | 
					         onStatusChanged: {
 | 
				
			||||||
             // Print warning messages
 | 
					             // Print warning messages
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user