Windows 11 include un „Mod Joc” activat implicit, care vă optimizează automat sistemul pentru jocuri atunci când detectează un joc în desfășurare. De obicei funcționează bine, dar dacă provoacă probleme de performanță, puteți comuta cu ușurință să îl dezactivați.
Modul joc este un mod special care acordă prioritate proceselor de joc pe măsură ce rulează,permițându-le în mod ideal să ruleze mai rapid, cu mai puține probleme de performanță. Modul Joc împiedică temporar Windows Update să instaleze drivere (care v-ar putea perturba jocul) sau să solicite repornirea computerului.
Here, a new es6 feature, called destructuring assignment [a, b] = [b, a], is used to swap the value of two variables. If [a, b] = [1, 2, 3], the value of a will be 1 and value of b will be 2.
First a temporary array [b, a] is created. Here the value of [b, a] will be [2, 4].
The destructuring of the array is done, i.e [a, b] = [2, 4].
As a result, the value of the variables are swapped.
We created a temp variable to store the value of a temporarily.
We assigned the value of b to a.
The value of temp is assigned to b
As a result, the value of the variables are swapped.