More than 1/2Gigs support \\ Multicore

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

More than 1/2Gigs support \\ Multicore

Postby LShome » Sat Apr 23, 2011 6:26 pm

Last edited by LShome on Mon Apr 25, 2011 1:03 am, edited 1 time in total.
LShome
 
Posts: 5
Joined: Thu Nov 19, 2009 10:06 pm

Re: 64bit support

Postby Chronos » Sun Apr 24, 2011 3:06 am

This has nothing to do with it being 64-bit. Algodoo can only use 2 GB (Or was it only 1?) of RAM, and it currently has a memory leak, which will cause it to crash pretty fast, since it can't use anymore RAM.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: 64bit support

Postby Someone Else » Sun Apr 24, 2011 3:38 am

A memory leak? If what I deduce from your post is correct, then it would work a lot better in Java.

Am I correct in thinking that a memory leak is what happens when the program fails to dispose of memory locations that it never uses again? So the program uses up more and more RAM?
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: 64bit support

Postby Chronos » Sun Apr 24, 2011 3:46 am

Someone Else wrote:Am I correct in thinking that a memory leak is what happens when the program fails to dispose of memory locations that it never uses again? So the program uses up more and more RAM?

Indeed, and Algodoo has a pretty big one.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: 64bit support

Postby Someone Else » Sun Apr 24, 2011 7:19 pm

I take it Emil doesn't know Java.
Java would certainly fix the problem, but might make Algodoo run a bit slower. Or at least make Algodoo take a bit longer to start up.

I know that Java source code will compile into Java bytecodes- machine code for the Java Virtual Machine- which somebody should build someday.
Anyway, these Java bytecodes are then fed into a program (this is on the client's machine) that transforms them into machine code for that computer.
I'm not sure whether this small program interprets the bytecodes or uses a just-in-time compiler.
If the former is true for modern versions of Java, then the Java interpreter translates the bytecodes into machine code as they are needed. This causes the program to run slower than if it were compiled out of, say, C++.
If Java does indeed now use a JIT compiler, then the JIT compiler translates all the code at once- then immediately tells the program it just compiled to run. This, naturally, would take longer to start up, but then run at a pretty normal speed.

The upside to all this is that if you write a program in Java, you will instantly be able to run it on any computer, anywhere.

Java also forces you to do a few things that might make the program run slower, but smoother- such as exception catching and garbage collecting, which automatically seals all memory leaks.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: 64bit support

Postby electronicboy » Sun Apr 24, 2011 8:52 pm

i doubt that they will take a look into rewriting algodoo into a different language.
and is you said, Java is too slow for a CPU intensive application such as algodoo.

Secondly, i've heard that Java is easy to decompile, which is something that Algoryx are highly trying to avoid!
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: 64bit support

Postby LShome » Mon Apr 25, 2011 1:01 am

It would not run @ all - just cause Java is soooo sllooooww and Algodoo runs already slow.

As far as I know Algodoo is written in C++ using SDL?
Should not be a problem to use more than 1/2Gigs.

Oh and Algodoo would run WAY more faster if algoryx would just concentrate on their engine and allow multicores..
Cause It sucks to have 6 cores running @ 4GHz but the application supports only 1 core and does not even use its full potential ._.

EDiT: OpenCL would be great.... =]
LShome
 
Posts: 5
Joined: Thu Nov 19, 2009 10:06 pm

Re: More than 1/2Gigs support \\ Multicore

Postby Someone Else » Mon Apr 25, 2011 4:06 am

I think that they should bury an option in Algodoo somewhere that allows you to set how many cores you want to use and how much RAM each is allowed to use. The first idea might be pretty difficult, but it may be possible to add a "buffer" program that coordinates multiple cores. The second idea, however, would be fairly easy. Maybe add an obscure Thume command?

I also think that they should optimize Java bytecodes, transferring laggy processes like garbage collection into less laggy processes such as creating/disposing memory slots in the initial compiling. That is, garbage disposal-based laggy source code would compile to less laggy types of bytecodes.

Do I make sense? I think not...
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest