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.
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.
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.
Can you link to said response? It's great to have a custom memory ownership handling scheme, but allowing memory leaks in that scheme doesn't seem ideal. I would love to read about how memory leaks are justified!
If anybody knew the answer it would be because they fixed it
What? I don't understand what you are trying to say. Neither of your sentences seem to be proper English, but I also struggle to understand your overall point... It's worrying that you seem to have some upvotes...
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.
From his explanation it sounds like there is a need for peer-to-peer. BrowserQuest relays all communication through the backend with WebSocket. I think WebRTC is going to be required. Though it is a newer and less supported technology.
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.
For any useful help I think you will need to be more specific.
What networking are you talking about? Peer-to-peer on the clients? Does the server side need networking? Or do you mean communication with the backend beyond AJAX calls?
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..
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 :).
Yeah Haven did a good job of shirking the mystery box thing, and I was enjoying it. But then they tried to go back to it. And it was pretty lame and random in the end..
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!
This was very good. Thank you for sharing! It is succinctly captures one of the most difficult aspects of game design. And the aspect that has made my interest in actually playing games drop off exponentially in the last 10 years.
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..
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.
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.
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.
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.
Awesome! Would love to see the documentation explaining that!!
So your point is that “ingrained” memory leaks shouldn’t be fixed?
Can you link to said response? It's great to have a custom memory ownership handling scheme, but allowing memory leaks in that scheme doesn't seem ideal. I would love to read about how memory leaks are justified!
What? I don't understand what you are trying to say. Neither of your sentences seem to be proper English, but I also struggle to understand your overall point... It's worrying that you seem to have some upvotes...
Oh yes, sorry for not including the version. I am using 3.1.1.stable.official.
Nice, thanks! That does seem to compile. It's a little confusing and sad that enums are not typesafe. But thanks.
Hm I have never used a breakpoint, and don't have any editors open to resources which don't exist.
Edit: Restarting the editor did make those warnings go away though... so thanks? Seems something a bit more fundamental might be off though. Oh well
This is a java question about NIO, why are you asking on the godot subreddit?
it's two monocles
Yup it's a pretty famous play
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.
From his explanation it sounds like there is a need for peer-to-peer. BrowserQuest relays all communication through the backend with WebSocket. I think WebRTC is going to be required. Though it is a newer and less supported technology.
This is one of my favorite comics. This is the best one so far!
I just saw some details in another post you made
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.
For any useful help I think you will need to be more specific.
What networking are you talking about? Peer-to-peer on the clients? Does the server side need networking? Or do you mean communication with the backend beyond AJAX calls?
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..
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 :).
Yeah Haven did a good job of shirking the mystery box thing, and I was enjoying it. But then they tried to go back to it. And it was pretty lame and random in the end..
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!
This was very good. Thank you for sharing! It is succinctly captures one of the most difficult aspects of game design. And the aspect that has made my interest in actually playing games drop off exponentially in the last 10 years.
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..
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.