Skip to content

u/UrbanPandaChef

In this archive from Oct 2024 to Jun 2025

0
posts
131
comments
0
media
687
score
11 saved before deletion

Yeah, I get that. But maybe I'm ignorant, but is there an engine out there that forces Vulkan with no opengl or other renderers?

You're right, they could choose a different API. But Vulcan is more cross-platform and it makes sense to stick to one API across the board for the sake of consistency across devices.

Vulcan is also better for potato devices because it lowers CPU usage.

Vulkan reduces load on CPUs through the use of batching and other low-level optimizations, therefore reducing CPU workloads and leaving the CPU free to do more computation or rendering than would otherwise be possible.

The only reason not to use it is if the device doesn't support it. It's more or less the successor to OpenGL and I figure OpenGL will slowly fade away as people increasingly choose Vulkan instead.

1 points

Why does your Text Adventure game need Vulkan as its backend?

This at least is just down to people using game engines. There's no good reason to do it from scratch most of the time and it makes it automatically cross-platform.

Why is your 2D Pixel art game demo 2.75GB? (Yeah, I know Steam sometimes reports different sizes in the dialogue, but I have installed it and confirmed indeed, it does take up 2.75GB on the disk)

Voiced characters, high-def art and high bit rate soundtracks are increasingly common. Most of the time it's not really pixel art, it's emulating the pixel art look and the resolution is definitely higher. There's no reason to limit ourselves to 8-bit color, 32x32 (or smaller) sprites and chip tunes unless we're going all on the retro aesthetic.

9 points

There's the soft approach, you can suggest rule changes to the whole team.

  1. Require unit and integration tests with a tool like SonarQube enforcing test coverage %. This will hopefully catch some of those issues early.
  2. Suggest that the master, release and development branches be protected so people can't bypass rules.

The in-between step would be get the team lead on board with those changes above in a 1-on-1. But again, frame it as team wide rules and you're suggesting it because those are the standards you're used to.

The nuclear option is to go above his head and see if management can coax the team into using these best practices or confront the team lead on the team's behalf.

23 points

How is the main menu loading that scene? We need to see actual code. There's nothing "wrong" with the approach, it's about reproducing what happens when you click the button and load a level and we need more info to do that.

2 points

How is your game loading the levels? All our answers are assuming that you are reloading the entire scene.

However, if what you're actually doing is loading in a child scene while the main scene persists forever then you need to use a different approach.

2 points

Add a field to your JSON that contains the file path of the scene.

saved_data["current_scene"] = get_tree().get_current_scene().get_name()

Then when you load you have to load the scene before you do anything else.

3 points

FWIW I never touch the voting arrows.

He's not doing anything wrong by cross-posting to different communities. He'd be well within the rules to post to all 3 subs in 1 day.

Your front page isn't his problem.

2 points

To be fair to him, he isn't spamming the sub. He's doing 1 post per day and each was in a different sub. You just happen to be subscribed to the ones he decided to post in. His last post here was 4 days ago.

2 points

It depends. Not all applications rely on the OS fonts, they can bundle their own for exactly that reason. If it's a messenger application or something that uses emojis very heavily it will often implement its own. Windows unfortunately only updates that sort of thing during the major feature updates that happen once per year and bump up the OS version.

I know all this because I worked on a messenger-like app and cross-platform compatibility means you have to take matters into your own hands.

2 points
//ServiceLocator (via autoload)
private services = {};

func register(service):
    services[service.get_class()] = service
func get(class_name):
    return services[class_name]

// UiManagementService (this should be a node in your main scene)
extends Node 

@export parentUiNode : Node

void _enter_tree():
    ServiceLocator.register(self)

// do stuff with parentUiNode 


//In any other script....
private UiManagementService uiManagementService

void _ready():
    uiManagementService = ServiceLocator.get("UiManagementService") 

See also Service Locator.

5 points

Using signals is fine. You're just relying on them a little too much.

But the answer is "services" and the service locator pattern. You have a UiManagementService that knows all about the UI nodes that you can call from anywhere.

All you need is a Dictionary<string,object> in a global autoload script called ServiceLocator with the class name as the key and the service object as the value.

 //Service locator (via autoload)
private Dictionary<string,object> services;

func register(service):
    services[service.get_class()] = service
func get(class_name):
    return services[class_name]



//in UiManagementService (this should be a node in your main scene)
extends Node 

@export parentUiNode : Node

void _enter_tree():
    ServiceLocator.register(this);

// do stuff with parentUiNode 


//In any other script....
private UiManagementService uiManagementService

void _ready():
    uiManagementService = ServiceLocator.get("UiManagementService") 

Now you can access UI functions from anywhere.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.