sp614x: I was browsing mods and I came across one that had to do with notch using some inefficient sin and cos functions in some places causing a CPU bottleneck. Not sure if it's something you want to add but it certainly seems like something you might want to at least look into.
I tested it today and the Math.sin() and Math.cos() are ten times slower than the Minecraft sin() and cos(). Switching to the Math functions makes no sense. This is on an Athlon dual core with Java 1.6. I have idea on which hardware/java version the Math functions could be faster.
Also the sin/cos functions have barely measurable impact on the performance if any at all. Claiming 30% FPS increase is quite suspicious.
The Minecraft sin() and cos() use precomputed values, something which have been used since Doom times for better performance.
After installing optifine its seems that my minecraft is less smooth as vanilla? I got about 20-25 fps with vanilla and i now get 30-36 with optifine but i get like a mini lagg spikes every 2 seconds. Can some one please help me?
I tested it today and the Math.sin() and Math.cos() are ten times slower than the Minecraft sin() and cos(). Switching to the Math functions makes no sense. This is on an Athlon dual core with Java 1.6. I have idea on which hardware/java version the Math functions could be faster.
Also the sin/cos functions have barely measurable impact on the performance if any at all. Claiming 30% FPS increase is quite suspicious.
The Minecraft sin() and cos() use precomputed values, something which have been used since Doom times for better performance.
Alright, just thought i'd pass along the information to the pro. Anything for moar frames.
Do you need a NVidia card to run fancy fog? My card is defiantly good, even has DX11, but the fancy fog option doesn't even show up. Any way to get around that?
Is there any way of making all the chunks on a given view distance render in a circle, or more simply, an octagon, instead of a square? Currently the fog also obscures a circular part of the terrain, so the chunks in the corners of the rendered terrain are effectively wasted processing. Cutting off the corners may help a lot on higher view distances.
The calculations needed to cut off the corners will probably cost more that the rendering of the corners.
Do you need a NVidia card to run fancy fog? My card is defiantly good, even has DX11, but the fancy fog option doesn't even show up. Any way to get around that?
It generally works on NVidia cards.
ATI cards probably need a custom shader in order to get it.
Can anyone answer this? Sorry for asking it again. >_<
Try them out. We can't know what works best for everyone. Probably smooth. It's not difficult to try classic, check your frames, try smooth, and compare.
I'm having issues downloading and installing the latest version ([1.0.0]) with the following error:
(I tried installing it before with the mods I already had installed, but it didn't work then so I tried the download new .jar, etc, etc.)
Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: zh.setTilesize <Lnet/minecraft/client/Minecraft;>V
at net.miencraft.client.a<sourcefile:254>
at net.minecraft.client.miencraft.Run<sourceFile:644>
at java.lang.Thread.run<unknown Source>
I open my minecraft using a .bat file (to allocate more memory,) and have installed this as so:
Download Fresh .jar
Use McPatcher
Install ModLoader (Not needed, but I still have it)
Install Optifine
And I get the above error message.
Any ideas?
Edit:
the Zh.class is associated with 1.0.0 Optifine, so it could be an error on your (the modders') part but I don't think it is.
I'm having issues downloading and installing the latest version ([1.0.0]) with the following error:
(I tried installing it before with the mods I already had installed, but it didn't work then so I tried the download new .jar, etc, etc.)
Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: zh.setTilesize <Lnet/minecraft/client/Minecraft;>V
at net.miencraft.client.a<sourcefile:254>
at net.minecraft.client.miencraft.Run<sourceFile:644>
at java.lang.Thread.run<unknown Source>
I open my minecraft using a .bat file (to allocate more memory,) and have installed this as so:
Download Fresh .jar
Use McPatcher
Install ModLoader (Not needed, but I still have it)
Install Optifine
And I get the above error message.
Any ideas?
Edit:
the Zh.class is associated with 1.0.0 Optifine, so it could be an error on your (the modders') part but I don't think it is.
~Kryostic
What do you mean use MCPatcher? Do you use it just to install mods or are you using the hi res texture stuff too? OptiFine has HD textures built in so you don't need to use the one with MCPatcher.
Hm, I'm having trouble. I installed the files and Minecraft is running perfectly, but the texture pack isn't taking effect. I don't know if it's just me, but my FPS does seem a slight bit better, though. Do I have to do something separate for the texture pack or something?
What do you mean use MCPatcher? Do you use it just to install mods or are you using the hi res texture stuff too? OptiFine has HD textures built in so you don't need to use the one with MCPatcher.
I'm going to try to install all my mods without using MCPatcher this time.
And with McPatcher I use the HD Textures, Fonts, and increase the Heap size a bit.
Rollback Post to RevisionRollBack
Question: What do you get when you multiply 6 by 9? Answer: 42
I never thought the universe made much sense.
Hm, I'm having trouble. I installed the files and Minecraft is running perfectly, but the texture pack isn't taking effect. I don't know if it's just me, but my FPS does seem a slight bit better, though. Do I have to do something separate for the texture pack or something?
What do you mean the texture pack isn't working? Are you actually switching texture packs? This just allows you to use them, this doesn't change anything by itself.
Hey what is the name of the class that is mentioned in the first post as ur.class in the new optifine?I would like to use mcpatcher because with it i can use animated texturess
ninja edit: and the kh.class too !
I'm having issues downloading and installing the latest version ([1.0.0]) with the following error:
(I tried installing it before with the mods I already had installed, but it didn't work then so I tried the download new .jar, etc, etc.)
Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: zh.setTilesize <Lnet/minecraft/client/Minecraft;>V
at net.miencraft.client.a<sourcefile:254>
at net.minecraft.client.miencraft.Run<sourceFile:644>
at java.lang.Thread.run<unknown Source>
I open my minecraft using a .bat file (to allocate more memory,) and have installed this as so:
Download Fresh .jar Use McPatcher
Install ModLoader (Not needed, but I still have it)
Install Optifine
And I get the above error message.
Any ideas?
Do not use the HDTextures and HDFonts from MCPatcher they collide with OptiFine.
If you want to use MCPatcher for other mods, then use it also to install OptiFine.
Installing on top of a patched minecraft.jar is not going to work.
Installing in this order should work:
- clean minecraft.jar
- ModLoader
- OptiFine
MCPatcher is not needed.
I tested it today and the Math.sin() and Math.cos() are ten times slower than the Minecraft sin() and cos(). Switching to the Math functions makes no sense. This is on an Athlon dual core with Java 1.6. I have idea on which hardware/java version the Math functions could be faster.
Also the sin/cos functions have barely measurable impact on the performance if any at all. Claiming 30% FPS increase is quite suspicious.
The Minecraft sin() and cos() use precomputed values, something which have been used since Doom times for better performance.
I was like 20-30 fps..
... Now I'm like 40-50 fps :biggrin.gif:
edit: Was watching the FPS and it turned up to 64 for some secs!
edit: A moment there it was over 80! :biggrin.gif:
Alright, just thought i'd pass along the information to the pro. Anything for moar frames.
The calculations needed to cut off the corners will probably cost more that the rendering of the corners.
Is there any way to actually get rounded fog? The fog is distance so the corners of vision are actually farther out than straight ahead.
It generally works on NVidia cards.
ATI cards probably need a custom shader in order to get it.
Screenshot?
Can anyone answer this? Sorry for asking it again. >_<
Try them out. We can't know what works best for everyone. Probably smooth. It's not difficult to try classic, check your frames, try smooth, and compare.
(I tried installing it before with the mods I already had installed, but it didn't work then so I tried the download new .jar, etc, etc.)
Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: zh.setTilesize <Lnet/minecraft/client/Minecraft;>V
at net.miencraft.client.a<sourcefile:254>
at net.minecraft.client.miencraft.Run<sourceFile:644>
at java.lang.Thread.run<unknown Source>
I open my minecraft using a .bat file (to allocate more memory,) and have installed this as so:
Download Fresh .jar
Use McPatcher
Install ModLoader (Not needed, but I still have it)
Install Optifine
And I get the above error message.
Any ideas?
Edit:
the Zh.class is associated with 1.0.0 Optifine, so it could be an error on your (the modders') part but I don't think it is.
~Kryostic
I never thought the universe made much sense.
What do you mean use MCPatcher? Do you use it just to install mods or are you using the hi res texture stuff too? OptiFine has HD textures built in so you don't need to use the one with MCPatcher.
I'm going to try to install all my mods without using MCPatcher this time.
And with McPatcher I use the HD Textures, Fonts, and increase the Heap size a bit.
I never thought the universe made much sense.
What do you mean the texture pack isn't working? Are you actually switching texture packs? This just allows you to use them, this doesn't change anything by itself.
You can use mcpatcher just don't use the HD Textures and fonts with it. Those are included in optifine.
Awesome mod, thanks for keeping it going.
~Kryostic
I never thought the universe made much sense.
ninja edit: and the kh.class too !
Do not use the HDTextures and HDFonts from MCPatcher they collide with OptiFine.
If you want to use MCPatcher for other mods, then use it also to install OptiFine.
Installing on top of a patched minecraft.jar is not going to work.
Installing in this order should work:
- clean minecraft.jar
- ModLoader
- OptiFine
MCPatcher is not needed.