Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 [3]
  ignore  |  Print  
  [Loading A 'small movie' in .PNG frames (Memory DEBO)] *closed*... (._.)  (Read 6927 times)
0 Members and 1 Guest are viewing this topic.
Online theagentd

« JGO Bitwise Duke »


Medals: 361
Projects: 2
Exp: 8 years



« Reply #60 - Posted 2013-01-19 17:21:44 »

Wait, did you say a Java out-of-mem-error?

Yep, with LWJG.
I got bored last night, decided to attempt to load my 123 frames, couldn't get past 30 frames without OutOfMemoryError from Java T_T.
LWJGL doesn't use more memory than Java2D. Since it stores the textures in VRAM it shouldn't use ANY memory for the textures.

EDIT: Let me guess: You forgot to change the VM max memory parameters in your LWJGL program?

Myomyomyo.
Offline GabrielBailey74
« Reply #61 - Posted 2013-01-19 17:23:07 »

Wait, did you say a Java out-of-mem-error?

Yep, with LWJG.
I got bored last night, decided to attempt to load my 123 frames, couldn't get past 30 frames without OutOfMemoryError from Java T_T.
LWJGL doesn't use more memory than Java2D. Since it stores the textures in VRAM it shouldn't use ANY memory for the textures.

EDIT: Let me guess: You forgot to change the VM max memory parameters in your LWJGL program?

No lolz.

Current VM Args:
1  
2  
3  
-Xmx4096m 
-Dsun.java2d.noddraw=true
-Dorg.lwjgl.util.NoChecks=true


By rendering 1 quad @ (640x480) with a Sprite on it dropped my FPS from 600 to 300?
lolz LWJGL >...............<

Offline davedes
« Reply #62 - Posted 2013-01-19 17:24:26 »

Probably because of SlickUtil... Not a very good texture loader.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline GabrielBailey74
« Reply #63 - Posted 2013-01-19 17:25:44 »

Probably because of SlickUtil... Not a very good texture loader.

Amen to that, SlickUtil even stalls my application for a minute, takes a few seconds to load a 41kb Font T_T.

Online theagentd

« JGO Bitwise Duke »


Medals: 361
Projects: 2
Exp: 8 years



« Reply #64 - Posted 2013-01-19 17:40:14 »

By rendering 1 quad @ (640x480) with a Sprite on it dropped my FPS from 600 to 300?
lolz LWJGL >...............<
Holy shit? You mean filling and interpolating texture attributes over 307 200 pixels, sampling 307 200 bilinear texture samples and writing out over a 1MB of data to the screen took, uh, 1.6667 milliseconds? Shit.

What GPU do you have anyway? And what kind of FPS did you get with Java2D that was so much more amazing than rendering 92 160 000 pixels per second?

Myomyomyo.
Offline GabrielBailey74
« Reply #65 - Posted 2013-01-19 17:43:32 »

Intel(R) Celeron(R) CPU 900 @ 2.20GHz, 2194 Mhz, 1 Core, 1 Logical...
Installed RAM: 2.00GB

My computer's horrible lol, mainly why I've been sticking with Java2D.

I see you're being sarcastic in your 2 questions above, so I don't know how to respond lol.

Online theagentd

« JGO Bitwise Duke »


Medals: 361
Projects: 2
Exp: 8 years



« Reply #66 - Posted 2013-01-19 18:21:53 »

Only the first part was, and that wasn't a question...  Sad

I asked about your GPU, not your CPU. Secondly, what performance did you get with Java2D?

Myomyomyo.
Offline GabrielBailey74
« Reply #67 - Posted 2013-01-19 18:25:48 »

Only the first part was, and that wasn't a question...  Sad

I asked about your GPU, not your CPU. Secondly, what performance did you get with Java2D?

My bad, I was going to edit my previous post and put 'All those statistics I know nothing about, only RAM'.
I don't know how to find my 'GPU' information mate.

EDIT:
Adapter Type: Mobile Intel(R) Series Express Chipset Family.
DAC Type: Internal.
Adapter String: Mobile Intel(R) 4500M (V8.15.10.1086)
Bios Info: Intel Video BIOS.

Total Available Graphics Memory: 797MB
Dedicated Video Memory: 64MB
Shared System Memory: 733MB

Hope those are the statistics you're looking for. Grin
With Java2D I was @ 100FPS steady.

Online theagentd

« JGO Bitwise Duke »


Medals: 361
Projects: 2
Exp: 8 years



« Reply #68 - Posted 2013-01-19 18:40:31 »

Ah, I see. Your GPU has 64MBs of internal VRAM, so most of it will end up in the "shared" RAM anyway, which is just your PCs normal RAM. You'd still get those extra 64 MBs to use for textures, and you might be able to store the data more efficiently assuming your GPU doesn't pad RGB colors to RGBA...

Myomyomyo.
Online theagentd

« JGO Bitwise Duke »


Medals: 361
Projects: 2
Exp: 8 years



« Reply #69 - Posted 2013-01-19 19:01:31 »



Stats:
123 noise PNGs at 800x600 loaded to textures.
Java process uses 71MBs, most is JVM overhead.
Starts and runs fine with a max heap size of 10MBs.
VRAM usage at 379MBs, Windows 7 overhead is 125MBs so 254MBs of textures.
Almost 7000 FPS.


Myomyomyo.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline GabrielBailey74
« Reply #70 - Posted 2013-01-19 19:18:37 »

Damn lol, look at you Angry
Skype, DropBox, Eclipse, Java App (6,000+FPS), Google Chrome, Steam.

My computer would of putted out a long time ago.
I'm not one for tuning my laptop D: waiting until I get a Desktop.

EDIT:
Just downloaded TechPowerUp GPU-Z thanks Cheesy, was going to post 'See, I can't even access statistics like that xD'.
Lolz, GPU-Z RenderTest left me with 100% GPU load, and what seemed to be a 2 - 5 FPS count?

Online theagentd

« JGO Bitwise Duke »


Medals: 361
Projects: 2
Exp: 8 years



« Reply #71 - Posted 2013-01-19 20:45:57 »

The point was the memory usage... ._.

Myomyomyo.
Offline GabrielBailey74
« Reply #72 - Posted 2013-01-19 20:49:59 »

The point was the memory usage... ._.

Thread closed, apparently no one has tried this in Java2D and than tried it in LWJGL :/

Online theagentd

« JGO Bitwise Duke »


Medals: 361
Projects: 2
Exp: 8 years



« Reply #73 - Posted 2013-01-19 21:27:59 »

The point was the memory usage... ._.

Thread closed, apparently no one has tried this in Java2D and than tried it in LWJGL :/
I just reimplemented it in a very hacky way in Java2D since I barely remember how it works. It runs fine even with -Xmx180m, but the task manager reports that it uses 450MBs.

Myomyomyo.
Pages: 1 2 [3]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (58 views)
2014-11-13 12:34:49

digdugdiggy (37 views)
2014-11-12 21:11:50

digdugdiggy (30 views)
2014-11-12 21:10:15

digdugdiggy (26 views)
2014-11-12 21:09:33

kovacsa (48 views)
2014-11-07 19:57:14

TehJavaDev (51 views)
2014-11-03 22:04:50

BurntPizza (51 views)
2014-11-03 18:54:52

moogie (66 views)
2014-11-03 06:22:04

CopyableCougar4 (65 views)
2014-11-01 23:36:41

DarkCart (150 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!