Hacker News new | ask | show | jobs
by kyle_u 3816 days ago
Linux 32-bit Build: https://s3.amazonaws.com/solitaire.gg/linux/Solitaire.gg.x32...

It looks like I exceeded your texture memory. I use pretty high resolutions (targeting 4K displays), and dynamically build the card textures at runtime based on your screen size. Let me know if the native app improves the situation.

1 comments

Another commenter said exactly the same thing about texture size, so I think you've pretty much nailed it.

The native build sadly didn't fix much; Electron === Chrome at this level of the stack pretty much. Thanks for taking the time to build it though :)

Incidentally, I tested the 32-bit build on my T43, and also tried the x64 build on my ever so slightly newer T60; both seem to have exactly the same issue: I'm getting pages and pages of

  r300: CS space validation failed. (not enough memory?) Skipping rendering.
on both machines' stdouts when I run ./solitaire. One uses (as I mentioned) an ATI X300, the other an X1400.

Behold what 2005-2007 had to offer...! xD

The T43 says:

  radeon 0000:01:00.0: VRAM: 128M 0x00000000C0000000 - 0x00000000C7FFFFFF (64M used)
  radeon 0000:01:00.0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF
  [drm] Detected VRAM RAM=128M, BAR=128M
  [drm] RAM width 64bits DDR
  [TTM] Zone  kernel: Available graphics memory: 440758 kiB
  [TTM] Zone highmem: Available graphics memory: 509818 kiB
  [drm] radeon: 64M of VRAM memory ready
  [drm] radeon: 512M of GTT memory ready.
  [drm] PCIE GART of 512M enabled (table at 0x00000000C0040000).
And the T60 says:

  radeon 0000:01:00.0: VRAM: 128M 0x0000000000000000 - 0x0000000007FFFFFF (128M used)
  radeon 0000:01:00.0: GTT: 512M 0x0000000008000000 - 0x0000000027FFFFFF
  [drm] Detected VRAM RAM=128M, BAR=128M
  [drm] RAM width 128bits DDR
  [TTM] Zone  kernel: Available graphics memory: 1534580 kiB
  [drm] radeon: 128M of VRAM memory ready
  [drm] radeon: 512M of GTT memory ready.
  [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
Can confirm, am firmly entrenched in old-hardware club. Ah well.

I'll try and check back here to see if you've thought of anything else; my email's in my profile.

For a few years now Google has had a little canvas benchmark in search results pages to figure out whether to enable endless scrolling. The game might springboard off of a technique like that to decide whether or not to use lower-resolution textures. (IMO, I'd target the detected screen resolution myself, I think that'd work...?)

>Behold what 2005-2007 had to offer

Actually, it (https://solitaire.gg/play/freecell on Chrome) locked up my (Intel HD Graphics 3000) 2011 Mac, so it's not just ancient machines.