minioctt, (edited ) to GraphicsProgramming Italian

Quei gamer che come me hanno nell’animo il PC masterrace, ma nella pratica odiano il tedio contro cui ci si imbatte appena si vuole effettivamente giocare a qualcosa per PC, staranno con ansia aspettando progressi sulla questione di giochi Windows nel browser. Quindi, che ho fatto ieri? …Un cazzo di niente! 🥰

Ho perso mezza giornata cercando invano di far funzionare prima alcuni programmi di benchmark, e poi Touhou. Ho dovuto installare DirectX 9 per quei programmi, ma poi comunque questi non partivano, perché a quanto pare DX9 non include rendering via software per Direct3D, e in v86 non c’è alcuna GPU. Pazienza, per quelli me ne farò una ragione, non ho vitale bisogno dei benchmark… però per i giochi è una rogna. Sorprendentemente, Touhou 6 parte in questo ambiente mezzo sfasciato, ma c’è un problema: non so come il gioco gira, riesco anche a muovermi nei menu alla cieca e avviare una partita, ma viene renderizzato solo lo sfondo e letteralmente null’altro, quindi non si può effettivamente giocare. (Dettagli più precisi in questa chat qui.) 🤬

https://octospacc.altervista.org/wp-content/uploads/2024/05/photo_5080513907201780824_x8412736725975051660-320x169.jpghttps://octospacc.altervista.org/wp-content/uploads/2024/05/screenshot_2024-05-24-00-21-42-337_org2221662542601539196-960x418.jpgHo provato allora con DirectX 8a, che pare essere l’ultima versione con software rendering prima di DX10 (che lo ha reintrodotto dopo che fu tolto tipo), e stando a Wikipedia ES dovrebbe essere il minimo richiesto da Touhou 6 (altre fonti specificano semplicemente DX8 generico). E qui il gioco però smette di partire, restituendo un errore non molto chiaro… che ho decifrato con Reddit e Google Traduttore, ma la cosa non mi ha dato alcun aiuto, non so a cosa si riferisca l’errore esattamente, e nessuna opzione disponibile tra configurazione del gioco e impostazioni di Windows ha risolto il problema (chiede di cambiare una roba che online non vedo discutere, probabilmente manco esiste). 🐭Proprio stamattina ho voluto dare una chance a Boxedwine; pensandoci, posso usarlo in maniera complementare a v86, nei casi in cui questo non va bene. Fare tutto tra telefono e tablet (dato che non sono a casa) è stato un casino, tra lentezza generale, memoria che si satura (per questo devo usare due dispositivi alla volta) e via… e ugualmente non è servito A NULLA. A parte il tempo perso (tanto, maneggiare con gli ZIP sullo Ximi non è veloce) tentando di avviare gli ultimi pacchetti distribuiti dall’autore per Wine 1.7 e 5.0, che evidentemente non funzionano (il primo non so perché, il secondo è colpa di ), usando il pacchetto di boxedwine.org sono riuscita ad almeno avviare il gioco, ma termina con un errore che credo sia proprio lo stesso di Windows 2000. Nella console di Wine vedo prima del crash una riga fixme:win:EnumDisplayDevicesW ((null),0,0x32f898,0x00000000), stub!, che può confermare i miei sospetti, ma non so se centri o sia una coincidenza. Guardando i file di Boxedwine credo ci sia DirectX dall’8 al 10, quindi non sarà un problema di librerie mancanti. 🐞

Se avete idee, per favore suggerite, perché sono proprio alla frutta, ho finito di giocare ancor prima di iniziare. Il problema è che il gioco non parte con software rendering, anche se in teoria potrebbe usarlo, sospetto che cerchi appunto una GPU e halti se non la trova. (Qui ho caricato il log di Wine.) Ieri sera ho fatto anche tardissimo per andare a letto, per via di questa roba, ma vi giuro ci ho messo un secolo a prendere sonno… questa cosa ora mi tormenta e devo risolverla: so che Touhou è abbastanza leggero da poter girare nel browser, se giochi anche molto più pesanti ce la fanno, quindi ora pretendo di averlo nel browser! Voglio giocarci in Sala Museo! Il problema sono ste cazzo di API; possibile che solo sulle console i giochi funzionano e basta? (Dovrò fare un emulatore Switch per il web, a proposito…) 🧱

https://octospacc.altervista.org/2024/05/24/cant-have-x-in-direct/

amoroso, to random
@amoroso@fosstodon.org avatar

This old paper tells the history of early Intel CPUs and discusses their features and major design decisions: the 8008, 8080, 8085, and 8086. The paper provides interesting technical and historical tidbits, such as the reason why the 8008 was little endian and hence later CPUs.

https://www.stevemorse.org/8086history/8086history.pdf

w84death, to asm
@w84death@fosstodon.org avatar
governa, to VintageOSes
@governa@fosstodon.org avatar
w84death, to asm
@w84death@fosstodon.org avatar

Emulated 386/33Mhz, 2MB RAM

Works perfectly smooth on EeePC class CPU.

w84death, to asm
@w84death@fosstodon.org avatar

For anyone intrested in boot sector programming this is the best tool out there!

I was searching so long for anything close to this for days. And bum! I don't even remember where I found it.

=> https://www.bootsector.games/

  • x86 BIOS Emulator
  • Assembly IDE (bad error handling)
  • Compiler, Debugger, Stepper
  • Live memory map! <- this is HUGE for me
  • Web only (Good and bad)


image/png
image/png

w84death, to asm
@w84death@fosstodon.org avatar

Yes!
Decoding binary pixel data using AND mask.

4b worth of sprite 🌱 (4x8)

w84death, to asm
@w84death@fosstodon.org avatar

My first boot-sector game is done!

Your goal is to fall into the moving boat at the bottom. Do not touch red platforms or fall into the ocean.

It has four levels.

https://github.com/w84death/x86-assembly

All 512 bytes used!

image/png
image/png
image/png

w84death, to asm
@w84death@fosstodon.org avatar

Removed super nice animated sprite of the player for more space.... This enables me to implement:

  • restart game
  • exit platform to go to next level
  • dying restart to first level
  • 4 levels (last 2 empty in video).

504 bytes

video/mp4

w84death, to asm
@w84death@fosstodon.org avatar

State of the game.

  • The dude has 3 frames to save space
  • Simple gravity added
  • Key-press changes his movement direction
  • Dude cant go outside the screen

359 bytes used of 512b limit.

video/mp4

w84death, to asm
@w84death@fosstodon.org avatar
nanochess, to retrogaming
@nanochess@mastodon.social avatar

I just made a Ray Tracer in 506 bytes of x86 machine code (a boot sector) based on the amazing Atari 8-bit BASIC program by D. Scott Williamson. Source code available in the description https://youtu.be/AZdzECF2Huw

fj, to TikTok
@fj@mastodon.social avatar

US bans , China bans , accelerating a move to SMIC-fabbed ARM chips (from Phytium & Huawei) in government data centers.

Also maybe Alibaba T-Head chips fabbed by TSMC? Data from Bernstein analysts suggests China represented last year almost 40% of all ARM-servers.

https://www.cnbc.com/2024/03/25/chinas-new-guidelines-will-block-intel-and-amd-chips-in-government-computers-ft.html

schizanon, to intel
@schizanon@mas.to avatar
nanochess, to linguistics
@nanochess@mastodon.social avatar

bootLogo is a small Logo interpreter that fits in a boot sector (508 bytes). Implemented commands: CLEARSCREEN, FD, BK, RT, LT, REPEAT, and QUIT. https://github.com/nanochess/bootLogo

boilingsteam, to linuxgaming
@boilingsteam@mastodon.cloud avatar

Big news in the world of Linux Gaming, with Playtron coming out of stealth, with a Linux-based OS running X86 games ready to run on multiple types of hardware (including ARM) - they have hired the Box86 dev, the ChimeraOS dev, as well as other prominent devs in the Linux world: https://www.theverge.com/24090470/playtron-gaming-os-linux-handhelds-exclusive

schenklklopfer, to random German
@schenklklopfer@chaos.social avatar

Wie schlimm ist es eigentlich auf mit zu emulieren?

Frage für ein Windows in einem Container auf einem ARM vServer in der ?

deadblackclover, to badminton
@deadblackclover@functional.cafe avatar

A book about compiling Racket and Python to x86-64 assembly

https://github.com/IUCompilerCourse/Essentials-of-Compilation

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • InstantRegret
  • magazineikmin
  • khanakhh
  • thenastyranch
  • rosin
  • Youngstown
  • ngwrru68w68
  • slotface
  • cisconetworking
  • osvaldo12
  • kavyap
  • tacticalgear
  • DreamBathrooms
  • anitta
  • GTA5RPClips
  • ethstaker
  • cubers
  • everett
  • Durango
  • tester
  • Leos
  • mdbf
  • modclub
  • normalnudes
  • provamag3
  • megavids
  • lostlight
  • All magazines