Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Need To Create 1.766847783843295832932975007429e152 Objects

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 14th Oct 2008 01:01
Yea... I really do.

I need to make that many spheres, but I dont care if the spheres are very small.

But I dont want them to take up too much RAM because I'm getting flooded in the RAM ;P
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 14th Oct 2008 01:17
Nvermind....

I realised that I was doing dbMakeObjectShpere(i,0.01,180,180);

I was making the spheres too high quality when I didnt need to.
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 14th Oct 2008 12:49
1.7 objects? Thats not even 2 objects

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
tobi453
19
Years of Service
User Offline
Joined: 28th Apr 2005
Location:
Posted: 14th Oct 2008 13:14
You really want to create
170000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Objects????

That's impossible.

FINAL VERSION RELEASED!!!!
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 14th Oct 2008 15:10
Well... its not impossible.... enough computers...

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 14th Oct 2008 15:20
Quote: "It is, because there aren't enough object numbers available.
"


Maybe one can run a few billion,billion instances of the program to enable duplication of the object numbers.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Oct 2008 15:24
Yup, you might as well stop right now.

Each object will require an amount of memory - you have 2 GB of addressable memory in Windows, less a bit for DLLs, your code and the variables needed to support your objects. Just assuming that an object takes up 4kb (and that's probably a conservative guess and assuming you instance them), will limit you to half a million objects. But it still doesn't stop there.

You still need to get your objects into video memory too - you'll need a card with more than 2GB of memory to hold those and render them - same amount of memory, plus more for holding everything needed for the display.

Then when you've got them loaded, you've got to render those spheres - half a million times each poly - and it's going to be slow.

Quote: "Yea... I really do"

No, you really don't.
What is it you are actually trying to do?

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Oct 2008 18:31
I'm still confused as to what a fractional object is meant to be.

jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 14th Oct 2008 19:03
its not a fractional object. you guys need to learn standard form. the e mean *10^, so
1.766847783843295832932975007429e152
means
1.766847783843295832932975007429*10^152
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 14th Oct 2008 19:38
oh.... I forgot the e.

But it would be nice to hear what Rei wanted with all these objects.

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 15th Oct 2008 00:12
He's trying to make the universe. xD No, I don't really know.
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 15th Oct 2008 05:53
I think he wants a hell lot of drops of water so when they are all together and seen from distance, it will looks like the ocean!

[center][center]
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 15th Oct 2008 06:25
No way! You must be smart, kBessa. I would've never have thought of that.

Maybe he wants to construct a pet dog from each little cell? xD
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 15th Oct 2008 10:03
No, no, no... I'm making fractals of an RLC Circuit Black Hole and I got it to work by reducing the quality of the spheres and it only increases my RAM load by 4%.
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 15th Oct 2008 22:27 Edited at: 15th Oct 2008 22:29
You created 1.766847783843295832932975007429e152 objects in DarkGDK all into frame at the same time and by only increasing your virtual RAM usage by 4%?

Until I see it, didn't happen. LOL

Edit: By the way, have you actually had the program return the number of objects pasted to screen? Cause there is no way you can even count to verify that. I wonder if DarkGDK just stopped creating objects after so many? Also, how small did you end up setting these too? Whats your application? This seems sort of impressive!

www.Helios-Online.net
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 15th Oct 2008 22:43
Quote: "Until I see it, didn't happen. LOL"


Ya, I just ran a test in DBP (I know this is DGDK but they use the same engine so it doesn't matter) and I attempted to make 10,000 cubes. The program slowed dramatically when it hit about 5,000 spheres, and was taking up over 150MB. So I find that somewhat hard to believe...

Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 16th Oct 2008 16:21
if you can create 100,000 objects every second it would take millions of years to create that many objects running 24/7 never mind the memory usage!

kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 16th Oct 2008 21:25 Edited at: 16th Oct 2008 21:31
Quote: "Quote: "Yea... I really do"
No, you really don't."


I second that!


Even an unsigned 64-bit int can only represent 18,446,744,073,709,551,615 numbers.

Just a small calculation: if any object would take up only half a byte (impossible), and if you had a huge ammount of memory, let's say, 16TB. You hear me, TERABYTES! And all your system would be running on other memory available somewhere (just theorically speaking)...

Ok, you have 16TB available only for your objects alone, that's a maximum of 35,184,372,088,832 objects. I hope you get it.

Dear Reikumar, I'm sorry if I sound harsh, but from everything I've seen you post in the forums, you have absolutely no clue of what you are trying to do.

[center][center]
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 17th Oct 2008 21:33
Someone needs to come back to this topic in about 20 years and reply, saying exactly how to do it. But until then, forget it.
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 18th Oct 2008 07:10 Edited at: 18th Oct 2008 07:20
Well I feel stoopid I was doing 80^(80) where as I should have been doing 80*80 which gives me 6400

Yea....

Well anyways, it still works and I've attached the release build so go ahead and grab it.

CLICK DOWNLOAD IN THE BOTTOM RIGHT CORNER ------------------------\

Attachments

Login to view attachments
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Oct 2008 07:15
Considering the fact that its memory usage had gone up 30MB by the count of 2,000 objects, it's safe to say that it would easily fill RAM past its limits by the time it reaches

1.766847783843295832932975007429e152

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 18th Oct 2008 07:22
DOWNLOAD THE PROGRAM

I've attached it to this post just click download in the

BOTTOM RIGHT CORNER NEXT TO THE FACE

Attachments

Login to view attachments
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Oct 2008 07:34
Um, why so forceful?

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 18th Oct 2008 07:39
Quote: "Well I feel stoopid I was doing 80^(80) where as I should have been doing 80*80 which gives me 6400 "



LOL! Dude, now THAT is reasonable. 6400 is a LOT of spheres, but really far from 1.7e152

[center][center]
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 18th Oct 2008 07:43
Quote: "Um, why so forceful? "


sry i just didnt want people to miss it
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 18th Oct 2008 08:54
So... what do u guys think?
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 18th Oct 2008 12:12
tip: i wouldn't just upload an exe, people wil think its a virus.
and its very pretty, but whats the point of it? for a black hole simulator, why do you have to leave the trails? Surely you can jsut have an object spiraling then hit the event horizon and stay there?
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 18th Oct 2008 21:38
no those spheres create the black hole, there is no actual gravity or anything... the sphere are what let us see the hole
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 19th Oct 2008 13:02
It looks ok... I dont know whats for

But I would like a "free flight" around it.

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 19th Oct 2008 20:18
Interesting lol. 80^80 is rather different than 80*80 xD.

Login to post a reply

Server time is: 2024-09-30 09:18:37
Your offset time is: 2024-09-30 09:18:37