Vulkan or OpenGL? Edition/gedg/ Wiki: https://igwiki.lyci.de/wiki//gedg/_-_Game_and_Engine_Dev_GeneralIRC: irc.rizon.net #/g/gedgProgress Day: https://rentry.org/gedg-jams/gedg/ Compendium: https://rentry.org/gedg/agdg/: >>>/vg/agdg/aigdg/: >>>/g/aigdgGraphics 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>>110430138
>>110472852ah yes, the good ol' OpenGL
>>110472852Vulkan is the future
What did he mean by this?
>go look at the ai gamedev thread>one third posting janky looking very early prototypes or disconnected features>one third people who were posting the above 1-2 weeks ago now asking how to get the AI to do the next steps because the slop codebase has ground it to a halt>one third seething about "the luddites"kek
>>110473545did Blow fix the performance problems? I remember the beta being a shitshow.
>>110473817Yes though it's still far from perfect, I get about 70FPS on a 4070 at 4k on balanced (down to 55 if I hit overview mode to see the whole puzzle map). It's not the Jai side though, it's very heavily GPU bound likely due to all the volumetrics and other VFX the game uses an abundance of. These effects become murderous at higher resolutions, stepping down to 1080p I get 195fps (zoomed) in and 135fps (zoomed out).My GPU isn't really up to snuff for 4k, to be honest.
Claude port opengl to vulkanmake five critical mistakes
How did you guys implemented your video buffer? I made a static array to represent the pixels on the screen and only when there's an update I call a function to grab the new pixels and tell X11 to draw them. This is faster than redrawing the whole screen every frame. It also acts as a depthbuffer since draw() sends changes of color to a pixel like (x: 500, y: 500, z: 1) and the video buffer only accepts it if its Z value is less than the old one.
>>110473981I have a structure FramebufferBundle that contains an (optionally) MSAA color attachment, depth attachment and an image for final output, all 2-layer. Every frame I draw to them in, each layer gets the view from different eye(because VR). After the draw I get resolved colors in the 3rd final image and submit them in to the vr compositor. Then I try to get an image from window's swapchain. If there is one ready(window has lower fps than hmd, and vsync is on by default), I copy the vr color output into window's own FramebufferBundle, run gui render pass over it and then present the swapchain image to window's surface.
>>110473608>one third people who were posting the above 1-2 weeks ago now asking how to get the AI to do the next steps because the slop codebase has ground it to a haltThis is only if you try to one shot a bunch of bullshit. If you know your toolchain (use cmake and git), establish an AGENTS.md or just set of rules, and progressively plan your architecture you’ll have a pretty nifty codebase.
>>110474294I do not think people posting there are capable of that. And you can never fully remove AI code smell unless you audit everything yourself. You can minimize it with good agents.md and skills, but it will never fully go away because as of now AI lacks ability to always write good code.
>>110474350The point isn’t to get rid of the smell. You’ll always be conceding something by letting AI do the work. The point is to have a viable extensible architecture. If your product isn’t a foot gun you’ve succeeded. The funny thing about amateur vibe coders is they don’t realize they can literally just ask AI on setting up a proper workflow and how to utilize AI effectively.
>>110474420A badly designed architecture is also a kind of code smell I am talking about.
>>110474294Yeah that's the proper way to do it. Skills, code standards, proper specs that the human user actually reads, and a human review before committing anything. However that requires knowledge and skills that all these vibesloppers don't have because they never developed them by doing things themselves, which is how you end up with unmaintainable messes that AI cannot keep up with anymore. AI is a magnifier for the person using it. A good engineer can genuinely become 10x more productive while maintaining quality, a poor engineer or worse a lazy useless shit who never in his life learned a deep skill will only magnify his own mediocrity.>>110474350To be fair, nobody was writing code without smells by hand either, all big projects (a category which for games comes really fast because of how complex they are) had shit code, known bugs kicked down the road, etc. If anything AI allows a single developer to retain more control than ever before. A second programmer in your team always required letting go of control more than AI does, and that person was unlikely to appreciate your micromanaging even if you found the time to do it. The problem is AI does not talk back or call your ideas shit, so you need to self-criticize constantly and be able to look at yourself in your mental mirror.The traits of a successful person haven't changed, ironically those who succeed with AI were going to succeed regardless and vice-versa.
>>110474441If you know what you are doing you won't make big architectural mistakes. If you delegate that to AI you are at mercy of a dice roll that the AI will set up things in the way that takes into account the way your game engine will evolve in the future. AI can make very fast local decisions, but this kind of future proofing is beyond its capabilities as of now.
I started making shaders in shader-graph, then raylib and openGL, then SDL3, and now vulkan. What a fucking clusterfuck and waste of time. Behead the child-porn-oneDrive datacenter pedophile-pajooz at microslop, and the greedy chinks at nvidia that enable them with dirX
>>110475367the question is... 'Why' are you making them?
>>110472852I don't feel like doing anything wtih OpenGL nowadays
How do you guys document stuff, structure-wise? I've been trying to organize things myself but it's so damn hard to make it look cohesive. Are there any good guides on it? Surely someone thought (and wrote down) a good method I can follow.
>>110476454cargo doc --open
cargo doc --open
>>110475585Good question. I did an over simplification, all the shaders are the same glsl, what im really talking about is renderer
>>110473817>did Blow fix the performance problems? I remember the beta being a shitshow.I got Order of the Sinking Star at launch on Switch 2, been playing it on & off since then. I haven't noticed any performance problems.
AI slop and it's consequences, steam needs just ban thirdworlders from publishing outright at this point
/his/ fag hereI am technologically retarded but I asked chatgpt if it would be possible to make a realistic continent-sized Europe simulator as a first person-style RPG. It said that could be done fairly easily with AI help. Is this true? Is there someone working on something like this already? Would a caveman like me be able to pull this off? I'm interested in making it historically accurate and open-world without injecting a political agenda into it.
>>110476454I don'tIf your code doesn't document itself, your code isn't clear enough
>>110478122>Is this true?No
>>110478132Damn. All I want is a KCD without the fag jew woke shit, and where you can choose your era and customize your character in an open-world. Is someone working on that? Any games like that out there?
>>110478170try Skyrim
>>110478192If I'm gonna waste time on video games, I at least want them to be historically accurate so I can learn something. It's astounding that, for all the AI explosion and video game craze with thousands of different capeshit, D&D slop worlds, not one person or group has made a historical first person RPG worth playing.
>>110478170Are you a /his/fag or a /pol/nigger lmao? Given the question and the AI use clearly the latter.
>>110478229realistic medieval history is actually pretty boring for a video game setting compared to fantasy
>>110478250There is nothing boring about the medieval world, or even the ancient world. Imagine a game where you can experience the Norman Conquest or the Crusades in the first-person, learning about real events as you go. Or if you like, assume a life as a merchant and learn more about trade networks of the time. You could choose to be a peasant or a noble in the king's court, or a king himself. So much effort put into fantasy slop and yet the dearth of historical games persists. The writing is all already done. You don't even need to invent a story. Just lean on history.
>>110478237If I was a /pol/nigger I'd be over there right now posting about which wizard dragon won the skyrim wars.
>>110478300>>110478309You're better off modding games to your fag snowflake sensibilities than creating one from the ground up. LLMs are good at that too.
>>110478300You're looking at a video game as something to learn about history and not something that's fun to play which is a mistakeYou can't really simulate melee combat in a video game which is why they lean on magic / fantasy and strict social systems mean there isn't a lot of room for interesting character-based storytelling (KCD suffers hard from this)Watch a movie or read a book
>>110478342>You can't really simulate melee combat in a video gameVR doesn't have this problem btw.
>>110478356Are you serious? You cannot collide with things in VR, you stand there failing your arms at nothing
>>110478300Wasn't there a game recently released that's essentially a middle ages simulator? I don't remember the name but the guy that told me about it you can larp as all those professions and have to do shit like move your mouse for each stroke of the hammer when forging for 10 hours. Maybe it was divinity original sin idunno i stopped following westslop releases.
>>110478122>Is this true?No, not even close. You can try for yourself, or otherwise look at what others have done with AI game development. None of it covers even 0.02% of the work needed.>>110478237>>110478331Just because this isn't the AI dev general doesn't mean your kind is welcome here, tranny.
>>110478342I think KCD did fine at melee combat. I don't care as much about the action being realistic. I just want realistic historical storylines and characters. KCD is most of the way there; it just needs to be less rigid in the storyline/character, and also bigger in the scope of the world.I read way more than you do FYI.
>>110478599I don't read at all, just saying video games aren't the best medium for historical accuracy
>>110473981what are you making where the screen is changing seldom enough to where you can afford to grab the changing pixels rather than just redrawing the entire thing?
>>110478697pikachu themed dialysis machine gui
>>110478623I'm not looking for the video game to replace books for historical accuracy; it should instead be a supplementary tool that helps you understand the daily life of people at the time and how drastically they were affected by historical events. Imagine being a Roman and seeing the before/after Cannae and seeing what it looks like when 15% of your population disappears, or something similar for the Black Plague. Reading a casualty count in a primary historical source doesn't drive home certain facts as readily.
>>110478842Games actually need gameplay, if all you care about is the story go watch / read some fiction
>>110478943>if you care about history go read fictionWow, I've been speaking to an actual retarded person this entire time
>>110479213obviously I meant historically accurate fiction you idiot
>>110479232>historically accurate fiction:| dawg are you actually retarded? If so I won't use the "R" word on you. You're making me feel bad
>>110478943Like I said, the gameplay can be KCD-tier, which was engaging enough to develop the following it has. It can do that, be open-world, and be historically accurate.
>>110479264You realize if you play a video game in a historical setting it's always going to be fiction right because nobody knows what actually happened back then down to a personal level? KCD is a fictional video game in a real setting>>110479281I don't even know what you're trying to argue aboutKCD exists, go play thatThe reason there aren't more of these games is history is usually a boring setting for a video game
>>110479264You are rude and not as intelligent as you think you are if you don't understand what that anon is telling you.
This is /gedg/ not /his/ fuck off.
>>110479306>I don't even know what you're trying to argue about>KCD exists, go play thatDi-...did you need me to read the thread to you?
>>110479322The first game doesnt have any gays or jews in it
>>110479321>posts e-celeb>claims historical accuracy is fiction>doesn't read postsYeah... on second thought I think I will be going back to /his/. I'll just leave you morons to... whatever it is you're doing here.
>>110479232As someone who was really into historical fiction for a while those are really dramatized. I guess the costume and set designs were accurate. But the soiciety was modernized for easier digestion and the obvious language. Versailles TV series is a masterpiece tho. So most of the recorded history mainly deals with royalty and shakespearian family drama like a soap opera plus political intrigues. There are some decent bong documentaries on jewtube about how they lived in different periods of middle ages.
>>110479340Thank God, hopefully this is your last retarded message in this board. You don't belong here and never will.
>>110479340>eceleb>prominent figure in the gaming industry who's also extremely relevant to the topic of this threadaifags need to kill themselves seriously. go to the dogshit superior intelligence generals histroon
>>110479342Literally any game about the adventures of an individual person thousands of years ago will be fiction
>>110479360You're on technology board, not /v/
>>110479371Yeah that's true. I kinda liked AC Odyssey though sparta'n shiet
>>110479328NTA but KCD was also only half a game. You don't even get to complete the main quest (claiming Henry's father's sword). Besides the other complaints/ideas anon mentioned
>>110479372>jonathan blow developing his own language specifically for game and engine development as well as developing his own engine to release to the public, as well as constantly discussing the state of the industry and game programming is not relevant to the Game and Engine Development Generalkillyourself
>>110479400KCD is a boring game with boring characters, a boring story and bad gameplay, but I guess poltards who only care about reliving history don't care about that
>>110479402Then discuss the tech when it's out faggot, not while it's vapourware and media shilling hype
>>110479424he literally just released a game entirely made in that language and engine to widespread acclaim. you came into this general asking if you could prompt an ai to make an extremely elaborate "continent-sized Europe simulator as a first person-style RPG." you have 0 clue what you're talking about. again, i desperately implore you to slit your own throat
>>110479434Have you tried it yourself or just shilling now?
>>110479419>everyone who doesn't share my interests is boring!!!!!You must be a riot at parties
>>110479440yea, i played it for 20 hours before calling it because of all the puzzle genres, sokoban is my least favorite, even though i thought the game was very cool. how's the ai prompting going
>>110479444Real, non-fantasy medieval society was objectively boring by modern standards, that's why nobody makes historically accurate games, it's all magic and adventure instead of living out your assigned role by your lord being a turnip farmer
>>110479450You don't seem to understand where you are, this is 4chan, no one has to follow your headcanon rules for code of conduct these reddit tier generals are freeform anyone can drop in with a shit take like (You)
>>110479454If you had ever cracked open a history book, you'd understand how woefully incorrect you are. History is a cornucopia of fascinating stories and struggles. You don't need to add elves and wizards, which were devices invented to keep small children engaged.
>>110479465i accept your concessioni'll be expecting the suicide livestream promptly. make sure to prompt your precious ai on the best method for entertainment purposes
>>110479467Blah blah, it's all filtered through academic lens bias that glued an incomplete picture together from translated text and lots of shit censored too.
>>110479487Promt yourself a new brain idiot, yours is clearly defective
>>110479467>History is a cornucopia of fascinating stories and struggles.Yes it is, when you look at the overall pictureWhen you look at the life of one individual it's usually boring as hell
>>110479523Most people were illiterate back then too and counted in their fingers
>>110479467>History is a cornucopia of fascinating stories and strugglesSo, you are not into realism, you are into stories embellished to make them more interesting.As a londoner living in 1275, what would that "cornucopia" look like? Your life will likely be super exciting, you'll be listening to random rumours to kill boredom and live though life-changing events like increased taxes on wool trade.That's an awesome source of gameplay ideas, yeah.
>>110479523So untrue. There have been fascinating characters from Xenophon, Cincinnatus, Marcellus, Polybius, Josephus, Belisarius, to Godfrey of Bouillon, Marco Polo, Christopher Columbus, and Bartolomé de las Casas. None of these people started out as kings btw, and only one example in this list became a king. They all have very rich historical documentation that they either wrote or of which they were the subject. Dropping a player in their midst or even letting them play as those characters would be amazing. Imagine playing Fabius Cunctator, leading your troops across Italy, trying to maneuver the tenuous military and political landscape of Rome during the Second Punic War. But stick with your dungeon goblin warlock capeshit, I guess.
>>110479750Games like that exist, they're called grand strategy gamesRPGs are where you take an ordinary guy and he goes on exciting adventures and gets into fights and solves peoples problems - that didn't really happen
>>110479643Actually, being in London in the year or so leading up to the first Anglo-Welsh war would be very exciting. You've let people convince you that the years 500AD-1500AD were just centuries of peasants flinging mud at each other because all you know is how to consooooom pop culture, instead of reading actual history.
>>110479776What are you even talking about? Every example on that list was just an ordinary person when they started out.
>>110479788yea very exciting>live your worthless peasant life>die in filth and bloodwow
>>110479800Read the rest of the postThe stuff they did is better suited to a strategy game
>>110479805Sure, you're right. Let's just add dwarves and trolls, and it can instead be a massive success.
>>110479828yea there'd be cool things to look at
>>110479815Strategy games lack the immersion. You won't learn as much; learning is part of the goal, and one which for it is acceptable to sacrifice some entertainment. What was their daily life like? What food did they eat? What clothes did they wear? How were their daily lives shaped by these conflicts? How did they interact with neighboring countries? Were there tensions between factiona of the same country? How did these tensions evolve as the central conflicts unfolded? Strategy games have a hard time of answering these questions, even when they do attempt it, which is seldom.
>>110479889>which for*for which
>>110479889then prompt your glorious ai to make the dogshit you want and see who gives a fuck about playing it
>>110479896I don't use AI much. My whole reason for coming here was to figure out if it's feasible. I made the mistake of thinking people on a board dedicated to technology may have some insight into the most cutting-edge technology on the market right now; you've proven that, at least, to be incorrect.
>>110479916then prompt it and make it
>>110479931I don't even have a subscription to any. I'm trying to decide if that's worth attempting. Clearly, I need to ask someone who knows, instead of wasting my time here with 60 IQ mouthbreathers like you that think the Carolingian Renaissance was shaped from mud and feces.
>>110479889>What was their daily life like? What food did they eat? What clothes did they wear? How were their daily lives shaped by these conflicts?Read a book or what a fucking movieThis isn't gameplay
>>110479916>I made the mistake of thinking people on a board dedicated to technology may have some insight into the most cutting-edge technology on the market right nowYou got an answer with literally the first reply
>>110479962enjoy playing your serf first person simulatormake sure you don't forget your jewish lord increased the grain tax for the 3rd year in a row. account for it or get beheaded
I made another test page, this one for testing networked AABB collisions. Movement is running at 16ms and network updates at 50ms then the client interpolates between packets to produce smooth movement. I found out that my smartphone typically runs 16ms per frame, but touching the screening causes it to render at 8ms per frame which was throwing off my render tick and causing nothing to render.https://magoogan.duckdns.org/js/collision_detection/You'll have to join on 2 browser windows to test the overlap check.
>>110479974It's almost exactly what the very successful KCD franchise did, only KCD just let you play one character on a fixed storyline in a limited area. I'm asking about customizable characters in a larger area, with a more open world and less rigid plot.
>>110480115In KCD you go adventuring, you fight people, you go exploringThat's not the life of a fucking general
>>110480123>in Skyrim TES Burning Crusade all the NPCs just farm turnips too, but there are fucking ELVES!!!! That makes it awesome!!!
>>110480157Who cares what the NPCs do? It's the player character that mattersEither you don't understand what makes an interesting game or you're severely deluded on what the life of someone back then was actually like
>>110480161See >>110479750 & >>110479800
>>110480189They're generals or explorersGenerals sit around in tents talking to people making decisionsYou might think being an explorer would make a good game but they spend most of their lives on a boat or in a caravan
>>110480202Each of them started out as normal people. That's the point. You've always been able to start as a normal person and lead an interesting life. If you had an interesting life, you'd understand that without even needing to read history. But instead you spend your time pretending not to understand arguments on 4chan.
>>110480217>Each of them started out as normal peopleMost of them started out as the children of the wealthy and they didn't get to where they are by adventuring, exploring the countryside, doing quests for villagers, fighting bandits and recovering loot
>>110480231>Most of them started out as the children of the wealthyPatently false, but even if it were true: allow the player to decide what family they're born into. Problem solved.
>>110480257You're fucking insufferable to talk toCompletely close-minded, deliberately ignores the point so you can ramble on about your romanticized view of the past
>play as lowly commoner doing your hecking reddit adventuring that definitely happened in real life>wait a minute i need to eat>have no money>hunting is your only option>kill a rabbit or deer and eat>get arrested because the entire fucking territory is owned by some lord and hunting on a lord's ground without permission is punishable>die as a retarded commoner having achieved nothing
>>110473545that's not what he said
>>110480265Never seen such obvious projection. Did you celebrate Thanksgiving with your family, or were you on here arguing with strangers? Just curious.
>>110480386I'm not AmericanI've literally told you why these historical characters would not make a good RPG and your mind just can't seem to process new informationThey didn't lead the lives of RPG protagonistsYou could make a book, a movie, a visual novel, a strategy game
>>110480408>not AmericanLmao. Explains so much. Let me put this in a way an ESL can understand: I'm not asking you to like my interests, nor to like my idea. I'm asking about the feasibility of realizing this goal. If someone went to /sp/ wanting to know how to improve their tennis game, and somebody else came in sperging out about how they didn't like tennis, the latter would be ridiculed the way I'm ridiculing you. Get it? Or do I need Deepseek to translate this to Hindi for you?
>>110480454English is my first languageThis is ironic coming from a guy talking about European historyBut yeah, I answered your question already, no it's not possible
>>110480467Haha my, well that changes things. I'll just report these posts to your "offensive-thoughts" police and they'll pin you down for your 8th booster before your decade jail sentence.
>>110480484I'm not British eitherDo you realize how hilariously ironic it is that you've been sucking off these European historical figures and the minute you find out someone isn't from your Amerimutt country you start lashing outI enjoy medieval history too, I was just pointing out that an RPG is a shitty way to explore it, the fact that you pursued that so hard says more about you than it does about me
>>110480494dude he literally came into here (not even one of the ai generals) asking if he could prompt his way into making something like that. he's indian and sub 80 iq. stop engaging with him, he's long worn out his welcome
>>110480530he's probably a loser white guy with a roman statue as his profile picture
>>110480494European civilizations were once great and now they're a laughing stock. I am interested in the history of Europe insofar as it birthed many of the wonders and horrors we have today; however, nothing interesting or productive has happened there or in whatever British satellite country you occupy since WWII. No one is impressed anymore. Please, keep innovating new bottlecaps for sodas, taxing syrup to fund your MAID programs, or shuffling your native stock into mandatory "voluntary" COVID camps, as the case may be. Do not trouble your betters with your inferiority complex any further; you'll make more friends that way. Who knows? You may even eat some scraps from an American table, if you're nice.
>>110480648>your bettersYou're a polfag coming into this thread asking if he can make a based and redpilled historical RPG with AI because you have no skills or competency of your ownYour IQ is probably at or below average, you've probably achieved nothing in your life at all
>>110480664Ah, I've narrowed you down, haven't I? Which are you, the syrup-drinker waiting for your Indian replacement to euthanize you, or the Ausfag getting rounded up into your COVID cage by a chink doctor?
>>110480755I don't even know what your pol gibberish is referring to anymore but I'm not Australian or Canadian and you won't be able to guess where I'm from
>>110480782>won't be able to guess where I'm fromI can't imagine living in some unrecognizable shit-hole country, never feeling any sense of importance or destiny. Small wonder about the inferiority complex and incessant projection. I apologize; your life is bad enough without me insulting you. Please enjoy your day, to the extent that's possible in whatever sad country you call home.
>>110480827You have no importance or destiny, that's why you identify as your country instead of an individualYou worship great men of the past because you are an inconsequential man of the present
this guy uses ai by the way
>>110480834More projection. Your knee-jerk aversion to the opportunity to experience a simple life was obviously a result of the perceived inescapability of your simple life.
>>110480881what the fuck are you talking about lmaoare you AI prompting your insults
>>110480883I should do that, it'd spare me the trouble. I obviously struck a nerve or you wouldn't be desperately refreshing the page, making sure to respond to each of my posts within 60 seconds.
>>110480895>>110480883>uh oh better space this next post out, he called me out
>>110480895click that box that says "auto" down the bottom next to update
>>110480914Lol you're not even browsing other threads on 4chan? Literally just this one thread? God that is just so sad. Is your life really that dull? I s2g I would kms if I wasn't American.
>>110480919I have multiple tabs open
>>110480932Please tell me you have running water too
>>110480944Spare us your butthurt bro
>>110480952So that's a "no"?
>>110478123based
>>110480290He literally posted a screencap of what he said THOUGH
I wish I could make a pure software game engine like the one in MDK game
>>110482020you can
Circular dependencies are my bane. I don't think I can make it. I'm too stupid.
>>110482524Linearise them, duh!
>>110478122It's possible, but have fun paying $50,000,000 in AI tokens to generate all that. Also the game will be 2 terabytes if you optimize it well.
>>110482524I use one one translation unit for everything, fuck dependencies
>>110476055We had some good times OpenGL, but the good times had to end.
>>110482524How are circular dependencies even a problem? If your modules do not have any sideeffects on load(and they shouldn't), it shouldn't matter what order they are loaded in.
You people are so sad man. I feel I can get more meaningful discussion in the aigd. They don't know Vulkan or even ThreeJS but at least they discuss games. You all just hate on everyone. Just like that Blow and Casey guy.
>>110484373Then leave this place and go have discussions with them.
>>110484055Yeah...What are you up to nowadays engine-wise?
>>110480648>nearly choking on the propagandayou have no idea what you're talking about.no idea.
>>110478122>realistic continent-sized Europe simulator as a first person-style RPGI'll bite. The short answer is no.The "wider" your game, the harder it is to add detail or "depth." The largest game worlds I can think of cap out at roughly the size of Great Britain, and those heavily rely on procedural generation to fill in the gaps.I would add that "choose your era" is going to make things even harder, since our knowledge of the past varies wildly depending on the time period you're looking at.KC:D but with a somewhat larger map and a custom character IS possible, sure, but if you want it to be a "simulator" with emergent narratives instead of prewritten ones, the closest I've seen is something like Bannerlord.And because you've triggered my 'tism, >>110480257 nearly all the names you mentioned were people born into wealthy / politically influential families. Off the top of my head only Belisaurius comes from unknown heritage.
I wish AI did not existed, I had so much fun coding by hand in 2019
>>110486118Nothing is stopping you from coding by hand.
>>110486118oh yeah, covid was fun tiems indeed
>>110486118Get over it. Start using LLMs and figuring out how to not make slop with it. We're never going back to 100% hand typed code, unless you want to go back to taking years to make shit.
>>110472852Anyone know a good way to cap framerate in DOS while also limiting CPU usage?I'm trying to limit my game's framerate to reduce to CPU load to only what it needs to draw a smooth framerate, and nothing more, so it doesn't max out CPU usage. I had been using sleep commands, but that's not flexible enough and its giving me inconsistent results on different machines (some run slow motion, some run too fast) I can't use the timer since DOS's timer isn't accurate enough to count past 18 frames a second. The language I'm working in is freeBASIC, so a language agnostic answer or one meant for a dialect of BASIC would be preferred.
>>110486546>limiting CPU usageIsn't DOS single threaded? Can't you just busy wait?
>>110486546You might have to check by example from existing code ie doom and others.
>>110486118I don't, and I'm fully self-taught. Programming was always a means to an end and things that used to take a week taking an hour is a massive blessing.
>>110486615I can, but that means that its using 100% of the CPU in Windows 3.1, 9x, and NTVDM, which in the case of the latter causes stutters. Plus it means I need to have different source files for Windows builds, even for simple gameplay test stuff. Which is a real hassle since there's no FB IDE for DOS.
>>110486118Cars existing doesn't stop me from walking. I don't see why AI would stop you from programming.
>>110486118>did not existed
>>110484373>ThreeJSself report
>>110487607it's really funny the objectively worst possible technology won for real-time graphics vibeslop, just shows how bad these people are at judging technology in general
>>110488149Rust is popular for AI rewrites too
>>110488195>Rust is popular for AI rewrites tooditto for that then, these people don't even understand the code in the first place and pick rust because it's a buzzword, ironically this hamstrings the LLM because of longer compile times and generally slower performance
>>110484724Just basic stuff. Just started working on a new one recently. I took a pretty long hiatus.
>>110488274>ironically this hamstrings the LLM because of longer compile times and generally slower performanceRust is as fast as any other systems programming language and LLMs are generally smart enough to properly use incremental compilation.
>>110488360>Rust is as fast as any other systems programming language and LLMs are generally smart enough to properly use incremental compilation.rust is not a true systems programming language and is not as fast as C because it degenerates memory management to reference counting by default, apart from the most trivial lifecycles that can be analyzed at compile time, also even the incremental compilation is slow
>>110488450>rust is not a true systems programming languageRedoxOS uses Rust for kernel and OS. Espressif offers bare metal Rust HAL for its MCUs. Rust is a systems programming language by the full meaning of that world.>is not as fast as C because it degenerates memory management to reference counting by defaultRust doesn't use reference counting by default. It doesn't actually do any memory management by default. If you want to allocate memory you need call an allocator or use Box::new for RAII. If you want reference counting you need to explicitly import and construct a Rc or Arc shared smart pointers. It's no different from C++ in that regard.>apart from the most trivial lifecycles that can be analyzed at compile timeObject lifecycle is actually very simple to analyze. Nearly all objects either get constructed and deconstructed in the same stack frame, or they get moved out. It's very rare for an object to have runtime dependent move out, which can be handled very simply with a drop flag.Are you sure you meant lifecycles and not reference lifetimes?>also even the incremental compilation is slowI have been using Rust for both normal development and for an AI rewrite/runtime mod. I have not experienced any issues with this, especially for the latter. In my experience running various test cases on the original game to measure everything and test various cases took the majority of the time, way more than generating and compiling part.Actually, the whole Bevy based test environment compiles in 3 minutes. After the deps are compiled, recompiling the rest takes 6-7s on sequential compilations.What was your concrete set up that resulted in prohibitively long compile times when vibe coding(or not) with Rust?
>>110488603>Rust doesn't use reference counting by default.no, it just degenerates into it most of the time>Object lifecycle is actually very simple to analyze.determining the exact point to free an object across all execution paths is literally undecidable in general due to Rice's Theorem and computing optimal static memory deallocation a control-flow graph is NP-complete, it's the exact opposite of very simple>Are you sure you meant lifecycles and not reference lifetimes?I meant exactly what I said
uh oh you triggered a rusttranny
>>110488647>Rice's TheoremThis is your schizo tell
>>110488647>no, it just degenerates into it most of the timeA code doesn't change on its own. It's entirely up to you to modify it. And overusing reference counting is a sign of an inexperienced programmer.In my game engine there are exactly 3 Arc(s) I create. A global config that gets shared across threads, an OpenVR context which gets shared across threads and a certain structure that is shared between complex models that define the shared parts and gpu buffers. None of these could be skipped if the code was written in C++ or other systems programming language.>determining the exact point to free an object across all execution paths is literally undecidable in general due to Rice's Theorem and computing optimal static memory deallocation a control-flow graph is NP-complete, it's the exact opposite of very simpleYou do not need to determine exact point to free an object across all execution paths, invoke Rice's Theorem and compute the optimal static memory deallocation a control-flow graph in order to track lifecycle of an object in Rust. Like I've said, all you need is a drop flag for the rare non trivial cases.Also analyzing object lifecycles is not the alternative to RAII, it's actually what makes RAII works. RAII is all about destructors being called deterministically when a value goes out of scope, and in order to do that you need to analyze the lifecycle of an object. It really sounds like you want to reason about lifetimes and not just a lifecycle of objects. In context of Rust, lifecycle of an object is just about object being constructed somewhere and the drop method being called when it goes out of scope. It is concerned with values that live on stack. Lifetimes of references to dynamically allocated resources is when things get actually complex. But this is entirely different problem. But either way, this is no different from C++ or even C.>I meant exactlyIt sounds like you are just throwing in random terms you have heard about to be honest.
>>110488761>This is your schizo tellthe fact you think that is a tell you don't have any CS education whatsoever
>>110488792You keep mentioning it in your half-baked rants
>>110488799>You keep mentioning it in your half-baked rantsanyone who ever worked on compilers or literally got an undergrad in CS knows what it is and why it is important, are you actually retarded?
>>110488812Who said I didn't know what it is?Schizos have pet ideas that they gravitate towards, instead of being open minded you have this narrow view of how things work and you have to make everything fit that viewIn this case it's not really relevant, as the other guy said most lifetimes are simple to track, your idea that everything degenerates into reference counting is just empirically wrong, and I don't even like Rust
>>110488829>In this case it's not really relevant, as the other guy said most lifetimes are simple to track, your idea that everything degenerates into reference counting is just empirically wrong, and I don't even like Rustmost lifecycles are not simple to check, simple lifecycles are, borrow checker performs conservative rejection because of undecidability, what is there you don't understand?
>>110488867most lifecycles are simple lifecycles
>>110488873>most lifecycles are simple lifecyclesand yet rust programmers riddle their shit with Rc<>
>>110488884over 95% of lifecycles are either determined by their position in the call stack or the lifecycle of another objectthis isn't something Rust specific, you can observe it in any language
Tilesetting is tiresome. That said, with the 13-tile technique to create the basic 48, I am pretty sure I can just automate that. As long as the indexes of the 13 are standardized, the 48 will always be the same relative to it... Might even already exist aseprites scripts that do just that, I need to check.
>>110488985There are lots of better ways to do this than drawing a bunch of tiles
>>110488991Are you refering to auto-tiling techniques such as https://doc.mapeditor.org/en/stable/manual/terrain/?
>>110489009Sure, that's one way, like I said there's lots, people like making youtube shorts about it
Always wanted to make a puzzle game, mostly been making sokobans. But this time i added bunch of "new" shit like lasers, mirrors, glass blocks that can be walked on but they let laser pass through them. It actually works really well, it's in a style i like, everything is going great. But now i need to actually design puzzles without stealing shit from other games i played (Order of the sinking star, phenomenal game btw all the best to the bald brother)Anything i should watch, read, or should i just not be dumb as fuck?Btw, just not to be so unoriginal, this thing is actually three dimensional, like i have ladders, slopes and shit. So original, i know.
>>110489109You can't outsource originality and creativity, sorry
>>110489118Yeah, not trying to. I just never did stuff like that before. I wanted to get inspo without actually stealing shit.I do other creative stuff really well, like painting. But this shit is really differentTnx for the time tho, i agree with you
>>110489109nothing wrong with what you make being a conscious and subconscious culmination of everything you've experienced. if you played a puzzle in order of the sinking star that you really liked, make something similar. in general, think of an idea you think would be fun, any random harebrained idea for a puzzle, start with the solution/end screen, and work backwards. don't make it so easy, don't make it too hard
>>110489763>if you played a puzzle in order of the sinking star that you really liked, make something similarthis is actually really bad advice for a puzzle game
>>110479340It was a joke about Jons opinion on openGL, schizo.
>>110478300>>110478229>>110478599Anon on his way to make KCD, but bigger and with customizable characters. Good luck!
>>110488603Looks great!! Is this actually written in rust, or something else? What libraries do you include?, raylib?
>>110488603Wow, are you Thomas Brush?, did you just write a game-engine in beef, and did you just import your gameplay-code from twisted tower into this game engine? Looks great!
>>110490806>Thomas BrushI just saw that guy on Youtube, what a fucking cringelord
>>110490823His melodic voice, he thinks he is so manipulative, but it is seethrough. You should definetly start some drama against him, or post a lot of hate-posts on 4chan
I wonder what khronos will do after Vulkan, will we come back around to simplicity of our beloved opengl ?
>>110491110Vulkan 2
>>110491110probably some tensor framework. There is no reason why vulkan compute is still so dogshit.
>>110491110No, they will only make stuff more difficult. For vulkan 2.0, they will open up the contents of the vulkan -drivers, so you will have to use a bunch of if-statements and store a bunch of state to write your own driver implementation for the GPUs you are targeting. You must write down pieces of the compiler, and choose how to handle the spir-v. You must also allways have the GPU-fan in the back of your head, because if it does not spin it will overheat.
>>110490744This is just vibe coded frame perfect recreation of Ultrakill movement in Rust with Bevy. It's literally just Bevy, nothing else.I like that movement set very much and wanted to port it to other games. But I figured out that if I want to do it accurately, I should make an intermediate implementation, or "runtime" as vibe modders seem to call it I guess, instead of trying to match the behavior it across two games that I can only mod.Idk, my friend had a lot of unused tokens and I wanted to test this for fun.>>110490806Who?>did you just write a game-engine in beefMy engine is written in Rust, it's not vibe coded. The video you replied to is just vibe coded Bevy shit though.>did you just import your gameplay-code from twisted tower into this game engineIt's from Ultrakill.>>110491110OpenGL is no longer simple if you actually use the modern features.
>>110491823BUT vulkan 2.0 will not have enouth information to write your own languages, And the gpu machine-code will still be hidden. You just have to fill in more paperwork
>>110491823>>110491834ALSO, now there will be 40x as many mandatory structs you will have to fill in, all with bad names that makes sence in hindi, but this time there will be 10 unused struct-feilds that you will have to fill up noncense, because of planned api-extentions that will never happen.
>>110489109My suggestion is to have a good framework, or ruleset on what makes a good puzzle. In ootss, it seams like a lot if the puzzles resolve into cool gadgets or structures made possible by the game logic. Cool stuff that the system can do, but that has been hidden by the designers. Also the progression of the puzzles seem to teach the player a vocabulary/language. I think having a ideal to lean on when choosing puzzles and game mechanics is important, but also try to fight saminess.
>>110479321jonathan blowjobs the type of nigga to say he is going to change the face of video games as we know it only to publish sokoban like whats next snake and tetris clones or pong? no towers of hanoi but ugly
>>110493293You're just low iq.
Look like jetbrains is going extinct in 2 years, what do you think?
>>110493422RustRover seems to be the best IDE at this point. I don't think I will be moving out from it any time soon.
>>110493427*best IDE for Rust
>>110493422I'll vibecode a new one.
I wonder if the era of getting rich by making indie games is now over. Most games made by "indies" these days are backed by an actual large team of devs. And most devs seem to be more concerned with chasing trends than making interesting games.
>>110493533>Most games made by "indies" these days are backed by an actual large team of devs.Dunno what games you play, but this does not apply to the indie games I have been playing.
Why do you people bother? Are you coding just for fun, for a useless portfolio? You are aware indie games are dead due to amount of them being dumped onto Steam? On top of that video gamers are spoiled manchildren who want everything for free and will flame you for using AI even for things like refactorings or finding bugs.
>what is a hobby
>>110493591It's impressive how you follow every news headline posted on 4chan. Have you considered that...another news headline will be posted tomorrow? Somebody else will have the last laugh then, HAH.
>>110493622steam cancelled their indie event, then pic related happened. gamers are blaming not the company which receives 30% for featuring a game on their servers, but... indie developers who dared to publish games too frequently.how exactly are you supposed to ignore that and continue sucking up to the gamer community?
>>110493591no one cares if indie games are dead, I have a highly paid job and program engines by hand because it's fun and keeps me sharp
>>110493649>b-but le aifuck ai. what about it?wtf are you even trying to say, retard?
>>110493718I am saying you will be called a loser/noob/jeet simply for being a solo developer even WITHOUT USING AI, thrown off the platforms and made fun of by 15 year old brown kids on /v/
>>110493779yeah youre thoroughly retardedyou just posted the exact opposite you mongoloid imbecilefor argument sake:nobody is gonna care about your game if your gameplay loop sucksnobody is gonna care about your game if they dont know it existsai has fuck all to do with the equationand you will always be worthless, regardless of advancements in tech
>>110493779>I am saying you will be called a loser/noob/jeet simply for being a solo developer even WITHOUT USING AI, thrown off the platforms and made fun of by 15 year old brown kids on /v/...and that's a good thing
>>110493819>peer pressure, and an imaginary one at thatholy reddit squaredthe other anon is a complete subhumannietzche was right on this one
>>110489109Your game is really pretty. Very nice aesthetic.>i need to actually design puzzles>Anything i should watch, read, or should i just not be dumb as fuck?I think designing puzzles is one of those things where you learn a lot more by doing it. You could also study some games where you can create your own puzzles like Portal 2 and Baba Is You. Take note of how all the different mechanics interact. Puzzle elements usually have several uses.Let's look at the tractor beam from Portal 2 for example. It can transport any physics object, including gel and the player. It also works really well with portals. And sometimes buttons can be used to change the direction of the beam. You can try to think about what the developers of the game had to go through before they ended up with the final product. They probably made a few levels with the tractor beam before realizing it would be cool if it could also move gel. Or maybe they were actively working on a puzzle and suddenly thought the beam should be able to reverse its direction. And who knows how many things they tried that ended up scrapped? Don't be afraid to keep changing how your game works.
>>110493779Oh no, what will the other people think of me, ToT
>>110493835you sound like you could use some learn2code instead of ceding your thinking to a statistical text model bro
>>110494008and what makes you think i do? that im not a rabid anti?ai is a technology, if you can extract value from it, more powerif youre afraid of ai-induced skill erosion maybe you should learn some self control insteadits a rehash of smartphone zombificationwhich was already a rehash of mmorpg nolife zombification.which was already a rehash of what the tv did to people etcits never the tech thats at fault. how could it be? its a thing, it has no agency. how could it be responsible for anything?doesnt mean you cannot leverage it.that the slop is poison doesnt mean it cant serve as shoe polish kinda deal
>>110494165I use it for truly braindead shit, where its place is: writing build scripts, some tests (and even here with a lot of care to audit what it shits out), boilerplate like RTTI macros and so on, anti LLM sentiment from players is good and rational because most people don't have restraint to use those models in a way that doesn't compromise quality
Do you guys have any case studies of manual memory allocator providing better performance than VMA?
>>110494211I use arenas for everything, allocation is one branch ([[unlikely]] and hits positive side 99.9999% of the time) and one addition, deallocation is one substraction, per-thread so no contention, the only time I have to degenerate to VirtualAlloc/mmap is when it spans the block and even that is like 200 instructions + one OS call. there's legitimately no other allocation system that can beat this on performance, especially in multithreaded program
>>110494193i see no fault with any of that.especially the anti ai sentiment amongst playersi use em even less in code, i use it for minimal working examples when im working with something new, then i prompt it for explanations of everything line by linethis way i hit the ground running. obviously working with the manuals is not optional, but i find it much easier to learn the mental model of a subject when working with live code, and buttons and knobs i can mess with to understand the properties of the concepts im working withotherwise, i use em as advanced search engine, where i browse subjects following the semantic relations around themis kinda like traversing a tree, with concepts being nodes, and their relations being the edgesllms are very good at that because thats quite literally how they look like on the inside, at an abstract level. constellations of wordson another hand though, if i could, i would use llms to generate code.not in the vibeshitter way though. id feed the shatbot pseudocode of varying degrees and the expected interfaces so that the code is conform to expectations and well structured, thus maintainable.and it turns a generation problem into a translation one so id expect this method to be much much cheaper token-wise, and it should enable free tier, opensource, or local models to be usable in codegen.i cant, though. i write compute. for a consumer machine. my code has to be highly optimized. llms cant even approach the level of quality i need. and i do fukken need it, i cant wait til the heat death of the universe to finish my computationsi cant run my code on the cloud either because theres some novel stuff in it and i dont work for free (running code on the cloud, or publishing it, or even keeping it on an internet-facing machine is tantamount to training the aibros' shatbots to code, but for free, like a jany. for the benefit of trilion dollar companies. obv i have too much self respect to be doing that.)
>>110494193>>110494328cont.now that i gave it slightly more of a finki would 100% use shatbots to do a second pass on my code to try and find exploits, if security was mission-criticalyou cant have too many eyes for such things, even if digital ones
>>110494211simple bump allocators are fast for small allocations, something like 1000x faster in relative raw allocation speed (scale of like a few hundred nanoseconds, maybe a microsecond).But for 65kb allocations and larger it's identical because most malloc implementations just mmap/VirtualAlloc the buffer beyond that size.>why 65kbno reason. But I bet it's because people are making 65kb element arrays for 16bit slots.Also optimizing allocations just doesn't matter that much for video games even for engine devs. It probably mattered a lot more when people wrote code for the unified 512mb the xbox 360 had.It's a lot better to just optimize after getting your code working, for example AI pathfinding using A* using a pool allocator.I feel like physics is another good area, but in reality, fast physics probably relies more on where put the memory, than it is about using a fancy malloc substitute, so basically lots of chunking, and those chunks are made with malloc, and yes you can still use arenas for that and it would be faster if each chunk array was resizable, but the problem is that entities move between chunks so you need to figure out if it's faster to leave gaps or to move them around, and if you move them around how do you keep the cache-locality without using pointers which absolutely fine because for a simple game this would scale up to like 10,000 units, which at that point your rendering system would probably be hit hardest anyways (AKA the reason why unity/godot/etc is better than engine devving, the rendering is just slightly better than your first renderer, and then you have autismos that spend 10 years working on their opengl/vulkan/webgpu renderer and AI is absolutely able to slop together an engine, and I am happy because AI is able to save new engine-devs today from wasting 10 years on a renderer, to realize it never even mattered at the end, *plays linkin park*).
>>110473608Why do retarded monkeys take mile wide screenshots of text zoomed out.
>>110495250>I feel like physics is another good area, but in reality, fast physics probably relies more on where put the memory, than it is about using a fancy malloc substitute,not really fancy, both PhysX and Havok get an explicit stack allocator on initialization, you can substitute it for anything already existing in your engine
>>110495282>mobilenigger favelado complains about people with proper screens
>>110495768Fuck you, even on 4k panel I ain't zooming in on some shitty copypasta
>>110488985You only need 5 tiles if you cut them into quarters and rearrange as necessary. Look into Minecraft Optifine compact CTM, it's the only public implementation of this I've ever seen.https://optifine.readthedocs.io/ctm.htmlhttps://ewanhowell.com/tools/ctmconverter
>>110494211Someone did a study on this with Doom 3 and the results were basically doesn't make a significant difference
>>110495250Physics is basically immune to memory optimization, the fastest way is still individual allocations for objectsYou can cache optimize static shapes but thats about it
>>110495768So you make dog shit screenshots intentionally?