Skip to content

u/ickysticky

In this archive from Jan 2009 to May 2022

7
posts
60
comments
0
media
200
score
1 saved before deletion

I certainly buy many more games due to sales than I would otherwise.

I think with video games in particular the value of a game to a person can vary wildly. I might only get 15 hours of value out of a game that another person will play for 500 hours. I think that sales bring a wider audience to match this variety.

8 points

Yeah I understand what is being said. What I don’t understand is why that answers ops question. In modern c++ memory leaks are largely avoidable when following one of the many memory management strategies available. I am curious to understand what is the memory ownership and management policy in the Godot code base that could lead to such issues. Or as Thanks! I think I got confused because I was hoping for an answer beyond “memory leaks exist and will be fixed if someone fixes them” but that doesn’t seem to be the point of the comments here. implied in other comments such false positives.

-17 points

It can actually make the code more clear in the case of one or two line lambdas. But in general a named function is better. Even when "in scope" learn to love the bind function. :)

Not sure what that has to do with callback hell though. It doesn't matter if they are named. You still end up with a stack 50 levels deep originating from a point unrelated to the event causing the calls. That is the real problem.

2 points

I just saw some details in another post you made

Its a 2D platform game with simple physics and really only 3 game rules

This will be very difficult to do in a browser. You really need direct peer-to-peer communication for a physics heavy simulation like this.
AFAIK there is no way to create a "listening socket" on the client. Therefore everything will need to be relayed through the backend. I expect this will introduce too much latency for a reasonable simulation!

EDIT: Ah I forgot about the new WebRTC stuff, you may be in luck! Something like PeerJS might help.

0 points

Wait. Do people really get anxious without understanding why?! That sounds terrible! I am constantly anxious, but I understand the reasons why, and that is what helps me dismiss it. But to just feel anxious and not have a reason sounds like torture..

79 points

A few more details would be helpful. How have you narrowed down that it is the blitting causing the slowdown? Can we see the profile? More details about how you are drawing?
Are you doing the "optimized surface loading" mentioned in http://lazyfoo.net/SDL_tutorials/lesson02/ (see the load_image function)? IIRC, this method makes sure that the loaded surface pixel format matches the screen pixel format so that it is a straight copy.
If it is a single layer of tiles, am I right to assume there are about 800 tiles on a screen at a time? That is a lot of draw calls to make happen in <16ms(assuming your target is 60fps). You would probably be hard pressed to et even OpenGL to do that many texture binds and draws in that time frame.
I think your best bet will be to draw the tiles to a larger off screen surface(or surfaces) first and then draw those fewer surfaces. This shouldn't be too difficult as long as the majority of your tiles are static..
Finally, if there is nothing wrong with the current frame rate(you say it runs at 35 fps on an old computer, that sounds pretty good) then don't go optimizing it, optimizing things without specific goals is a road to a lot of wasted time in my experience :).

10 points

The main killer for me is character development. I am in the third season, and the characters are still dealing with issues that they had in the first episode. Issues I thought were already dealt with in multiple episode, move on!

2 points

The issues with the GPL are the vagueness. It is entirely unclear what violates the GPL. What is a "derivative" work? What does it mean to "link"? All in all it seems like it was written with a pretty narrow view of software/hardware/computing, and it is quite the hinderance.
For instance, Linux is GPL, if you create a product that uses Linux as an operating system, are you violating the GPL? Is this a derivative work? Is making syscalls linking? I would call it dynamic linking. But it must not violate GPL, since hundreds of close sourced products run on Linux servers and no one gets upset..
Another issue is that it spans two fields that really take a lifetime to become truly proficient at. I know good lawyers, and I know good software engineers. But I don't know any good lawyering software engineers. And you really need those qualifications to properly write and interpret a license like this..

1 points

Why give him a break? Finding documentation is an important skill, I often find criticizing people for lack of a skill encourages them to learn that skill more quickly and thoroughly than giving them the answer.

0 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.