File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ var cols, rows;
1212
1313// Info for refining
1414let refining = false ;
15- let refineTX , refinteTY , refineBX , refineBY ;
15+ let refineTX , refineTY , refineBX , refineBY ;
1616
1717// Logo text replaces lumon image
1818const logoTextWidth = 180 ;
@@ -214,10 +214,12 @@ function setup() {
214214
215215 const cnv = createCanvas ( windowWidth , windowHeight ) ;
216216 cnv . parent ( "game-container" ) ;
217+ cnv . drawingContext . willReadFrequently = true ;
217218 frameRate ( 30 ) ;
218219
219220 // create a downscaled graphics buffer to draw to, we'll upscale after applying crt shader
220221 g = createGraphics ( windowWidth , windowHeight ) ;
222+ g . drawingContext . willReadFrequently = true ;
221223
222224 // Scale buffer for mobile
223225 smaller = min ( g . width , g . height ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ var cols, rows;
1212
1313// Info for refining
1414let refining = false ;
15- let refineTX , refinteTY , refineBX , refineBY ;
15+ let refineTX , refineTY , refineBX , refineBY ;
1616
1717// Logo text replaces lumon image
1818const logoTextWidth = 180 ;
@@ -214,10 +214,12 @@ function setup() {
214214
215215 const cnv = createCanvas ( windowWidth , windowHeight ) ;
216216 cnv . parent ( "game-container" ) ;
217+ cnv . drawingContext . willReadFrequently = true ;
217218 frameRate ( 30 ) ;
218219
219220 // create a downscaled graphics buffer to draw to, we'll upscale after applying crt shader
220221 g = createGraphics ( windowWidth , windowHeight ) ;
222+ g . drawingContext . willReadFrequently = true ;
221223
222224 // Scale buffer for mobile
223225 smaller = min ( g . width , g . height ) ;
You can’t perform that action at this time.
0 commit comments