Here is a snippet of code in A-Frame that I'm currently working with. My goal is to access and modify the maxCanvasWidth and maxCanvasHeight properties of the renderer component using JavaScript conditional statements, but I'm struggling to figure it out.
<a-scene renderer ="antialias: true;
colorManagement: true;`
sortObjects: true;
physicallyCorrectLights: true;
maxCanvasWidth: 1920;
maxCanvasHeight: 1920;"></a-scene>
Here's an example pseudo-code of what I aim to achieve:
<script>
var update = document.queryselector('a-scene');
if(fps < 60){
update.maxCanvasWidth = 800;
update.maxCanvasHeight = 800; }
</script>