Results 1 to 9 of 9
  1. #1
    Wampwire's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United Kingdom of Tea
    Posts
    227
    Reputation
    10
    Thanks
    22
    My Mood
    Devilish

    Post FPS Display 1.5.2

    Many of you who are wishing to create a Minecraft Custom Client want an FPS display somewhere in game. It doesn't matter why, or where, you just want to copy and paste stuff in it and call it yours. Well, here it is.

    Code:
    int fps = Integer.valueOf(Minecraft.debugFPS);
    Firstly, we create an integer (int) which would be called fps. This integer uses already made counter of FPS, therefore making this really easy to do.
    This calls the void from Minecraft.class.
    Code:
    var8.drawStringWithShadow("\2472FPS: " + whatever your integer name was, x, y, hex colour code);
    Then we call the drawString void. Notice how for 1.5.2 we use var8 instead of fontRenderer. So we use var8.drawString to draw our string (text).
    In the brackets we have our string "FPS: " and our int + fps. We then add the x and the y coordinates and our colour code. After closing the bracket add a semicolon.


    My client uses x and y coordinates so that if you try to resize the game, the FPS stays in the bottom right corner and not somewhere lets say, 420, 400. You can use simple math to make your string adjustable.

    To do this, you're going to have to call an integer from GuiMainMenu.class

    Code:
    GuiMainMenu.width - 50, GuiMainMenu.height - 12
    This grabs the current width and height of the, lets say, JFrame or whatever minecraft uses.

    Skid unfriendly-ish.

    You should all know where to place all of this. But if not, it is supposed to go in GuiInGame.java

  2. #2
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by OP
    Skid unfriendly-ish.
    .
    ..
    ...
    I know you only left out the names of variables but why do people do this for things as simple as how to use guiIngame? Now for TTF chat or something I can see why, but when people make code "skid unfriendly" for simple stuff it makes me die a little inside.
    (Good tut for beginners anyways)
    Last edited by LordPankake; 06-08-2013 at 01:24 PM.

  3. #3
    Wampwire's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United Kingdom of Tea
    Posts
    227
    Reputation
    10
    Thanks
    22
    My Mood
    Devilish
    Thanks but yeah, I know, still people gotta learn how to program.. :/

  4. #4
    Smaug's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    2,518
    Reputation
    121
    Thanks
    1,192
    I just use fraps for my FPS
    Member Level 1 since 4/20/11 - 8/4/14
    Member Level 2 since 8/4/14 - present

  5. #5
    Caezer99's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    577
    Reputation
    10
    Thanks
    1,243
    Quote Originally Posted by Clastic View Post
    I just use fraps for my FPS
    LOL WTF ? You should not really do that...

    ---------- Post added at 11:51 AM ---------- Previous post was at 11:50 AM ----------

    Quote Originally Posted by LordPankake View Post
    .
    ..
    ...
    I know you only left out the names of variables but why do people do this for things as simple as how to use guiIngame? Now for TTF chat or something I can see why, but when people make code "skid unfriendly" for simple stuff it makes me die a little inside.
    (Good tut for beginners anyways)
    I figured how to do a TTF chat hehe . Ownage gave me a hint where the chat text is handled.


    Mess with the best, die like the rest.


  6. #6
    Smaug's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    2,518
    Reputation
    121
    Thanks
    1,192
    Quote Originally Posted by Caezer99 View Post
    LOL WTF ? You should not really do that..
    Is something wrong?
    Member Level 1 since 4/20/11 - 8/4/14
    Member Level 2 since 8/4/14 - present

  7. #7
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Or you know, just hit F3.

  8. #8
    Wampwire's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United Kingdom of Tea
    Posts
    227
    Reputation
    10
    Thanks
    22
    My Mood
    Devilish
    but F3 brings up all the debug stuff :P

  9. #9
    xziolox000's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    74
    Reputation
    10
    Thanks
    148
    Good tut

Similar Threads

  1. Is WarRock the future FPS?
    By arunforce in forum General Game Hacking
    Replies: 6
    Last Post: 04-16-2007, 03:37 PM
  2. Bad FPS Still
    By aduckie in forum WarRock - International Hacks
    Replies: 5
    Last Post: 02-24-2007, 11:36 AM
  3. Low FPS on a TOP NOTCH PC
    By AN1MAL in forum Hardware & Software Support
    Replies: 6
    Last Post: 08-31-2006, 11:15 AM
  4. Cool Display
    By Dave84311 in forum General
    Replies: 5
    Last Post: 02-20-2006, 12:24 AM
  5. Iet Fps :o
    By i eat trees in forum General
    Replies: 41
    Last Post: 01-26-2006, 07:24 PM

Tags for this Thread