00:00
00:00
EmsDeLaRoZ
I like chocolate
...
Is kewl to make funny things. Also, death to homework forever and ever
...
Beautiful banner made by @rosarjc

Emiliano Zacarías @EmsDeLaRoZ

Age 21, Male

Eat chocolate

México, América

Joined on 12/23/21

Level:
21
Exp Points:
4,754 / 4,900
Exp Rank:
10,771
Vote Power:
6.30 votes
Audio Scouts
7
Art Scouts
2
Rank:
Police Officer
Global Rank:
16,226
Blams:
82
Saves:
527
B/P Bonus:
10%
Whistle:
Normal
Trophies:
10
Medals:
234
Supporter:
1y 1m 25d

Small story: what a bad programming can do to your device

Posted by EmsDeLaRoZ - May 28th, 2024


So, I recovered a small story of my past experiences as a younger programmer and decided I want to share it, for any other young programmers out there that want to learn a bit and be more careful with what they do.


So, y'all know about the MODE 7? If not, i'll explain you quickly. MODE 7 is a graphic mode the Super Nintendo (SNES) used to illustrate backgrounds that could rotate and scale. It became known because these characteristics along other maths allowed to make a 3d plane, which you can see in games like Super Mario Kart or F-Zero.


A younger myself who wanted to make cool 3d graphics on it's own tried to replicate this MODE 7 effect. The problem is, when I was younger I didn't have the level of math knowledge I have nowadays, and thus, decided to recreate that 3D effect the only way I knew how to do: read 1 pixel of a pic, and paste it to the screen in an adapted perspective calculated with some divisions, trigonometrical functions and other nerdy things. I learned through the hard way that this was an inefficient way of doing that, why? because after compiling the code, my computer's screen quickly froze and turned black.


I instantly hit Alt + F4 in the hopes that the computer didn't explode, and fortunately it didn't, but I did get a warning from part of my computer that the graphic card suffered a problem. I cannot remember the exact error that came, but the point is that the computer warned me that something almost damaged the graphic card. If you ever want to create something, don't just take the "easy path" right away, first inform a bit so you REALLY know what you're doing, and after that, go ahead and flow with it, or else your PC might explode right in front of you.


iu_1211854_10186085.gif


Tags:

3

Comments

It happened to me once, even the teacher got scared, I used to programm years ago, nothing complex as you saying, but a wrong code line or wrong optimitation can destroy the computer