[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor applications are now closed. Thanks to all who applied!


[Advertise on 4chan]


File: 54.jpg (103 KB, 800x602)
103 KB JPG
Remembering the good doggo Edition

/gedg/ Wiki: https://igwiki.lyci.de/wiki//gedg/_-_Game_and_Engine_Dev_General
IRC: irc.rizon.net #/g/gedg
Progress Day: https://rentry.org/gedg-jams
/gedg/ Compendium: https://rentry.org/gedg
/agdg/: >>>/vg/agdg
Graphics Debugger: https://renderdoc.org/

Requesting Help
-Problem Description: Clearly explain your issue, providing context and relevant background information.
-Relevant Code or Content: If applicable, include relevant code, configuration, or content related to your question. Use code tags.

previous >>108972587
>>
Computer, process every 4chan vidyadev thread from the past 36 years. Unify all the ideas that have been posted then generate it.
>>
Why is 3D so much harder than 2D! I can a shitty version of any 2D game in a couple days. But 3D? There just aint no fucking way! 2D puzzle games - EASY! 2D playformers - NO PROBLEM! 2D Top Down Zelda Stuff - PIECE OF CAKE! Then you go literally just 1 console generation into 3D - Mario 64, Golden Eye, Spyro, Crash Bandicoot? JUST FUCKING IMPOSSIBLE! You need a million fucking 3D assets for the most simple level, enemy AI is retarded compared to how fast you can put together a half decent 2D ai, hit collision is brutal, nothing fucking works, everything is glitching through everything else, the lighting is awful, the worldbox looks like trash, and some how your 20 poly character animations lag and break the armature or weight painting or something. It's all just a cluster fuck!
>>
>>109024223
It’s just how it is. 3D adds another dimension, that means more shit.
>>
>>109024223
just use godot and be done with it nigga
>>
File: .png (192 KB, 488x468)
192 KB PNG
>>
>>109024441
we out here, negro
>>
>>109024400
>dude just become a pedophile
wat
>>
File: 1769978766877477.jpg (31 KB, 456x320)
31 KB JPG
Show me your dev face /gedg/
>>
File: 1777490731358795.png (994 KB, 1170x1000)
994 KB PNG
>>109025063
>>
How can I draw pixels on a screen in loonix without OpenGL or Vulkan? Is libdrm what I need?
>>
>>109025568
depends on your OS
>>
>>109025568
write to /dev/fb0
>>
>>109025568
>open a paint program
>draw some pixels on your screen
>>
>>109025568
Use a colored pen and draw directly on your monitor. Zero overhead and works with any OS.
>>
>>109025731
you just found an os-independent way to draw graphics.
hell, it's even power independent.
you might be genius.
>>
>>109024028
Creates a game engine that gets developed for a week and then abandoned.
>>
>>109025568
enter Mode 13h and write to segment 0xA000
>>
>>109025568
most languages have a basic graphics library that lets you draw rectangles, circles, draw along a path etc.
>>
>>109025568
SDL
>>
File: 1758801369738248.png (87 KB, 799x799)
87 KB PNG
>>109025063
>>
>>109025743
Mine has been in development for a year THOUGH
>>
>>109025568
Just use openGL or vulkan dont fall for retarded low level purity spiralling.
>>
File: 87.png (123 KB, 281x246)
123 KB PNG
>>109025063
>>
>>109025568
I actually happen to be somewhat of an expert in this topic.
But your question is very vague and what you mean drastically changes your answer

>1. Make an X or Wayland window and draw into it in software.
This is perfectly reasonable, but software rendering really struggles with modern resolutions and refresh rates, at least when we're talking about something highly interactive like a game.
>2. Make an X or Wayland window and draw into it in hardware, without using the userspace drivers.
This is fucking insane, and an unbelievable waste of time and effort, unless you get a kick out of trying to implement GPU drivers yourself. It is also hardware specific.
>3. Not use a display server at all, and drive the screen yourself
Don't do this. Unless you're actually writing a display server, you have no business touching these interfaces.
I actually find the DRM/KMS system quite interesting, but you clearly come off as someone going at it for the wrong reasons. You're not going to unlock some kind of supreme hidden performance or whatever you're expecting to find. Nobody is going to run your program if it works like this.

Then you have the same thing as above where software is slow, and no OpenGL or Vulkan is fucking insane. Wayland compositors still use OpenGL (usually ES) or Vulkan here.
>>
>>109029705
>linux users
>>
jeez the time flies man, I still remember deving in 2005
>>
File: 654.jpg (105 KB, 1200x960)
105 KB JPG
>>109023614
what is /gedg/ opinion on early DirectX ?
>>
>>109032161
All the early APIs are quite bad but DX has always been a lot better than OpenGL.
>>
>>109032161
using old tech is retarded
>>
>>109032161
are we talking before or after hardware t&l
>>
>>109032161
Just write the most basic passthrough shader you can imagine and congrats, you have the same visual style as DX1-8 without the jank or compatibility issues.
>>
>>109029705
ok gotcha
i was hoping X/Wayland could provide me with fast enough buffers by themselves but if they don't, drawing on a gpu texture it is
>>
>>109032422
use sdl. it doesn't go through the gtk or qt gui frameworks. it jockeys its own resources in the display manager and provides its own image buffer types that you can draw on with the cpu if you really want to go that way. this is what all the doom sourceports do for their software rendering.
>>
File: communitytracks.webm (3.77 MB, 1280x720)
3.77 MB
3.77 MB WEBM
New feature! You no longer need to rename your created tracks to take the place of existing tracks.
>Creates TRACKS folder in same directory as binary if it doesn't exist
>Accessible with space/cup switch button in track select menu
>Always available no matter what cups the user has unlocked
>Not available in championship mode, only single race/time trial
>Arrows from replay loading file menu re-used
>Lap records saved to TRACKS/RECORDS.REC and based on track CRC
>Network play works if all players have track file with matching CRC, if not TRACK NOT AVAILABLE text will display and prevent readying
>>
>>109032624
this is like nascar 1999 x need for speed born out of some kind of fever dream.
>>
>>109032422
With both Wayland and X (if you use the appropriate extensions rather than the ancient shit), you use normal shared memory for software buffers, so the protocol itself doesn't really get in the way when it comes to efficiency. XWayland can pass it through with no extra copies too, so isn't an extra source of inefficiency, at least in terms of pixels over the wire.
GPU buffers are similar, but instead are a dma-buf, which is just a handle to some GPU memory instead of some normal memory, plus some extra shit about tiling layouts, because GPU buffers aren't as simple.

When I say software rendering is slow, it's simply that the CPU is nowhere near as good at punching pixels into a buffer as a GPU is, but is definitely doable, and could be SIMD optimized if you're into that shit.
>>
Do you guys use public / private encapsulation for your projects or do you just make everything public?
>>
>>109032847
My language does not have public/private.
>>
>>109032847
>do you guys use your language's features or are you retarded children writing spaghetti code?
>>
>>109032847
i do everything in one giant file with as few functions as possible everything should be in main
>>
>>109033086
"yes" or "no" would be sufficient



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.