fix: willReadFrequently forces CPU-backed canvas, bypasses GPU tiling
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 14s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 4s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 8s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 1s
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 14s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 4s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 8s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 1s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
var geoData = null;
|
var geoData = null;
|
||||||
|
|
||||||
function drawMap() {
|
function drawMap() {
|
||||||
var ctx = canvas.getContext('2d');
|
var ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||||
var cw = canvas.width, ch = canvas.height;
|
var cw = canvas.width, ch = canvas.height;
|
||||||
// Transform from viewBox to canvas
|
// Transform from viewBox to canvas
|
||||||
var sx = cw / vb.w, sy = ch / vb.h;
|
var sx = cw / vb.w, sy = ch / vb.h;
|
||||||
@@ -216,7 +216,7 @@
|
|||||||
var lat = 90 - (mapY / H) * 180;
|
var lat = 90 - (mapY / H) * 180;
|
||||||
|
|
||||||
// Use canvas isPointInPath for hit testing
|
// Use canvas isPointInPath for hit testing
|
||||||
var ctx = canvas.getContext('2d');
|
var ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||||
var sx = canvas.width / vb.w, sy = canvas.height / vb.h;
|
var sx = canvas.width / vb.w, sy = canvas.height / vb.h;
|
||||||
for (var i = 0; i < countryPaths.length; i++) {
|
for (var i = 0; i < countryPaths.length; i++) {
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
|
|||||||
Reference in New Issue
Block a user