Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Posted 12 January 2015 - 01:54 PM
Normally, the advice for speeding things up is to profile it first.
So if you find your logic is running super quick, but all your time is in the graphic library you use. Then you want to focus on that, maybe trying a C++/C interface instead.
If you find actually its your java code, and the graphics run fine and quick, then you might get what you want by speeding up your code (in a number of different ways.)
Once I enabled hardware acceleration using the snippet I provided in my earlier edit, I saw a VERY significant increase in FPS, so it turns out it was the graphics libraries, as I expected. The other code could still use a lot of revision though, since I just threw stuff at it for certain parts.
Posted 13 January 2015 - 01:17 PM
Just wanted to update, after revising one part (the painting method stuff for the graphics engine) by making everything wait till it's actually done painting, I have increased the FPS above 100, even at full screen. Today is a joyus day. Now to fix those pesky little errors.
Posted 13 January 2015 - 10:58 PM
No c++ then?
Congrats on the fixings. Now may be a good time to test the graphic lib in different platforms, see if the problem was solved, or if it was just an instance of it.