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

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-04-04 11:24:56 +03:00
parent 42939db1b0
commit a1b3263412

View File

@@ -96,7 +96,7 @@
var geoData = null;
function drawMap() {
var ctx = canvas.getContext('2d');
var ctx = canvas.getContext('2d', { willReadFrequently: true });
var cw = canvas.width, ch = canvas.height;
// Transform from viewBox to canvas
var sx = cw / vb.w, sy = ch / vb.h;
@@ -216,7 +216,7 @@
var lat = 90 - (mapY / H) * 180;
// 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;
for (var i = 0; i < countryPaths.length; i++) {
ctx.beginPath();