Robin Posted October 18, 2010 Author Share Posted October 18, 2010 Finished up an early version of my Java applet. First time using multi-threading, so I've getting mixed results.Help me out by posting your FPS![Link to engine.](http://www.robin.freemmorpgmaker.com/engine/main.html) Link to comment Share on other sites More sharing options...
DrNova Posted October 18, 2010 Share Posted October 18, 2010 Uhh….... Amazing Robin!XD Well, my Framerate hovered between 50k and 80k, with an occasional drop to 10,000, and a few spikes to 120,000...Best framerate EVER!(is there a decimal point in there i couldnt see?) Link to comment Share on other sites More sharing options...
Robin Posted October 18, 2010 Author Share Posted October 18, 2010 Nope. That's the real frame rate. xDIt runs in two threads and it thrashes your CPU because I'm not limiting it. At the moment it's only got two threads. The default awt.* rendering thread (Yes, I know… don't laugh xD) and a separate game logic thread I created.When the frame rate is unlocked, the main game logic thread is going thousands of times a second whereas the renderer is only going every so often. I stopped them going out of sync by having the main logic loop waiting for the rendering thread to finish it's loop before carrying on, which limits it down to around 400fps.Much easier to handle.Looking into using MVC at the moment, which should be waaay more scalable.Keep in mind I've only been using Java for a couple of days now, so I'm still a complete newbie at it. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2010 Share Posted October 18, 2010 Same as Dr. Nova Link to comment Share on other sites More sharing options...
Robin Posted October 18, 2010 Author Share Posted October 18, 2010 Good stuff. I'm surprised just how much power I can get out of it. Really is on a whole other level from VB6 and .NET xD Link to comment Share on other sites More sharing options...
saadhamza Posted October 18, 2010 Share Posted October 18, 2010 I was getting around 160k+, but sometimes jumped down to 20k for no apparent reason. Link to comment Share on other sites More sharing options...
azure Posted October 18, 2010 Share Posted October 18, 2010 140k+ it was pretty steady. :P Link to comment Share on other sites More sharing options...
MarBos Posted October 18, 2010 Share Posted October 18, 2010 150K - 249KAvg 225 Link to comment Share on other sites More sharing options...
SilentGamer Posted October 18, 2010 Share Posted October 18, 2010 I was getting 140, 000 at college Link to comment Share on other sites More sharing options...
Marsh Posted October 18, 2010 Share Posted October 18, 2010 Kept moving from like 112 to like 540.Though, i am on linux with no graphic card drivers installed. Link to comment Share on other sites More sharing options...
Robin Posted October 18, 2010 Author Share Posted October 18, 2010 @Marsh:> Kept moving from like 112 to like 540.> > Though, I am on linux with no graphic card drivers installed.112,000 or just 112? What browser are you using and what kind of CPU do you have? Link to comment Share on other sites More sharing options...
Marsh Posted October 18, 2010 Share Posted October 18, 2010 112, im on firefox, i have a quad core something or other. I no how to check on windows not linux.But like i said i have graphic drivers installed. It lags while watching videos sometimes. Link to comment Share on other sites More sharing options...
cyberismo Posted October 18, 2010 Share Posted October 18, 2010 @Robin:> Finished up an early version of my Java applet. First time using multi-threading, so I've getting mixed results.> > Help me out by posting your FPS!> > [Link to engine.](http://www.robin.freemmorpgmaker.com/engine/main.html)12'000 - 45'000 Link to comment Share on other sites More sharing options...
Robin Posted October 18, 2010 Author Share Posted October 18, 2010 @Marsh:> 112, im on firefox, I have a quad core something or other. I no how to check on windows not linux.> > But like I said I have graphic drivers installed. It lags while watching videos sometimes.Mhh. It's only using the awt.* library so I'm fairly sure it's rendering in software mode. I've had a few other Linux users reporting frame rates in the 100,000s, so I'm not sure what's going on there. :\ Link to comment Share on other sites More sharing options...
Marsh Posted October 18, 2010 Share Posted October 18, 2010 Dont know if this will help you debug but the space shooter game you posted i got a high fps. like 10,000 + i think. Link to comment Share on other sites More sharing options...
Robin Posted October 18, 2010 Author Share Posted October 18, 2010 The FPS shown on the shooter was just a random number I typed in. I didn't know how to create timers back then. xD Link to comment Share on other sites More sharing options...
Marsh Posted October 18, 2010 Share Posted October 18, 2010 lol epic.Reminds me of how to increase your FPS.FPS * 3 Link to comment Share on other sites More sharing options...
Smallbro Posted October 18, 2010 Share Posted October 18, 2010 It was at a 50-60k then it suddenly went down to under 100 xDEDIT:Refreshed the page and it stayed at around 50k Link to comment Share on other sites More sharing options...
Anna Comnena Posted October 18, 2010 Share Posted October 18, 2010 40k-60k mostly, if I'd scroll the browser or something it sometimes would drop to 30k but nothing lower than that.Quick scrolling down then back up sorta killed it though, it became unresponsive after that until a page refresh. Link to comment Share on other sites More sharing options...
Chief Posted October 18, 2010 Share Posted October 18, 2010 the Highest I got was 17k, and the lowest was 60k. It averaged about 90k though. Link to comment Share on other sites More sharing options...
Robin Posted October 18, 2010 Author Share Posted October 18, 2010 Right. Finished the main entity system. It now supports full rendering of the entity at it's set position, partial rendering of the entity at it's set position (partial meaning I can select a 32x32 tile from a tileset and render that), full rendering of the entity at a position passed through the call or partial rendering of the entity at a position passed through the call.Updated the first post with the new version. It's a quick test of the new thread sync and fps limiter. It randomly renders around 1825 sprites per loop, each given a random position every loop.FPS check again please. ;o Link to comment Share on other sites More sharing options...
Smallbro Posted October 18, 2010 Share Posted October 18, 2010 36 FPS quite solid aswell. Link to comment Share on other sites More sharing options...
Chief Posted October 18, 2010 Share Posted October 18, 2010 I got an average of about 45 Link to comment Share on other sites More sharing options...
Myron Posted October 18, 2010 Share Posted October 18, 2010 It stayed on 20\. Quite nice, ;D Link to comment Share on other sites More sharing options...
Anna Comnena Posted October 18, 2010 Share Posted October 18, 2010 24 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now