I am seeing this editor/plugins/script_editor_plugin.cpp:1432 - Condition ' base.begins_with("local://") || base == "" ' is true. Continuing..: editor/plugins/script_editor_plugin.cpp:1432 - Condition ' base.begins_with("local://") || base == "" ' is true. Continuing..: Any ideas what this means? Ho...
Hello! I am getting a warning, W 0:00:00:0193 The function 'connect()' returns a value, but this value is never used. <Source> Breaker.gd:12 Which refers to a call to Object::connect which makes sense, and I want to handle the return value which is of type @GlobalScope.Error, but I can't for the lif...
I am trying to understand how to handle unicode keyboard input in libGDX. I don't have a great intuition for these things so I might be a bit confused. What I see is that InputProcessor.keyTyped takes a char type. But shouldn't it take an int type to handle "surrogate pairs"? Do
Apparently my original post was automoderated because there weren't enough words in the body of my post (weird rule IMO). I will now attempt to have enough words in a post with a pretty straightforward API question. I was looking into the implementation of getDeltaTime in libgdx on Android and it se...
I am working on a networked game. I have read about and understood(I believe) the concepts which are usually discussed. Things like dead reckoning, client side prediction, and server reconciliation. An issue I am now running into is how to accurately send an elapsed time from the client to the serve...
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 :).
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..
I have no idea why, but this is very funny.
I always thought this was strange. I feel just as dirty and sugary drinking a Vitamin Water as a Coke.
Er. I delete things in an obsessive compulsive way. My home directory is pristine.
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 :).