Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old 3 Weeks Ago   #1 (permalink)
Emu author
 
@ruantec's Avatar
 
Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,381
Beating the notepad Round 1

during the development of @ES iīve been trying to optimize stuff as much as i can.. sadly its not always easy to do that as coding isnīt as easy as many people probably think.

today i did some changes to the code and see how far i could get...sadly i lost Round 1 against the notepad by 820kb

here the cruel proof:

Notepad memory usage:


@ES - MorphX memory usage:


Round 2 is about to start... any ideas????

Spoiler:
__________________

Current development tools:

Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6
@ruantec is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 3 Weeks Ago   #2 (permalink)
Emu author
 
@ruantec's Avatar
 
Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,381
Round 2:

The battle is over and we have a new King!!!!!


Spoiler:
bye, bye notepad
__________________

Current development tools:

Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6
@ruantec is offline   Reply With Quote
Old 3 Weeks Ago   #3 (permalink)
Registered User
 
KrossX's Avatar
 
Join Date: Mar 2006
Location: Argentina
Posts: 928
Windows7 x64:



... >_<
__________________
KrossX is online now   Reply With Quote
Old 3 Weeks Ago   #4 (permalink)
Emu author
 
@ruantec's Avatar
 
Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,381
Quote:
Originally Posted by KrossX View Post
Windows7 x64:



... >_<
nice

........ let me do some more changes...


bah... not exactly what i wanted but am pretty sure i can beat that


UPDATE:
am comming closer
__________________

Current development tools:

Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6

Last edited by @ruantec; 3 Weeks Ago at 14:37..
@ruantec is offline   Reply With Quote
Old 3 Weeks Ago   #5 (permalink)
Registered User
 
Join Date: Dec 2006
Location: Illinois
Posts: 242
Impressive job man, a lot more optimized than it was when I first visited your forum. Course its really not the same program now either with you changing the guts so much.
Ignis is offline   Reply With Quote
Old 3 Weeks Ago   #6 (permalink)
I tell you what.
 
BigIg's Avatar
 
Join Date: Aug 2006
Location: Ohio, USA
Posts: 2,273
You need to talk to mudlord. He'd have this down to 10KB... you know... after he converts it to pure x86 assembly.
__________________
Arrogance and ignorance go hand in hand
BigIg is offline   Reply With Quote
Old 3 Weeks Ago   #7 (permalink)
Emu author
 
@ruantec's Avatar
 
Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,381
Quote:
Originally Posted by BigIg View Post
You need to talk to mudlord. He'd have this down to 10KB... you know... after he converts it to pure x86 assembly.
the problem isnīt the way the code is written(C#) but the files i use to create that GUI and coverflow..

-background
-buttons
-iphone skin
-8 3D albums items with cover
-10 3D audio covers with custom cover almost on every single one
-custom fader control at the top and bottom(use a image as base)
-custom slider control that uses a background and a thumb image
-overlay
-covers buffer
-some other images hidden by now

this canīt get lower actually but i think i can beat the 1,3mb mark.

Quote:
Originally Posted by Ignis View Post
Impressive job man, a lot more optimized than it was when I first visited your forum. Course its really not the same program now either with you changing the guts so much.
thank you
__________________

Current development tools:

Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6
@ruantec is offline   Reply With Quote
Old 3 Weeks Ago   #8 (permalink)
Registered User
 
KrossX's Avatar
 
Join Date: Mar 2006
Location: Argentina
Posts: 928
Ha! Great improvement there.
__________________
KrossX is online now   Reply With Quote
Old 3 Weeks Ago   #9 (permalink)
You're already dead...
 
cottonvibes's Avatar
 
Join Date: Sep 2007
Location: Post-Apocalyptic Earth
Posts: 3,908
@ruantec:

You should use a constant scene with @ES, or else it doesn't tell us how much memory consumption was reduced.

You can for example load a folder with 15 files, and one with 2 files, and the later option might consume less memory w/o actually altering the @es's code.
__________________

Quote:
Eccentricity is often associated with genius, giftedness, or creativity. The individual's eccentric behavior is perceived to be the outward expression of his or her unique intelligence or creative impulse. In this vein, the eccentric's habits are incomprehensible not because they are illogical or the result of madness, but because they stem from a mind so original that it cannot be conformed to societal norms.
check out my blog
cottonvibes is offline   Reply With Quote
Old 3 Weeks Ago   #10 (permalink)
Emu author
 
@ruantec's Avatar
 
Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,381
Quote:
Originally Posted by cottonvibes View Post
@ruantec:

You should use a constant scene with @ES, or else it doesn't tell us how much memory consumption was reduced.

You can for example load a folder with 15 files, and one with 2 files, and the later option might consume less memory w/o actually altering the @es's code.
Well on those pics I have about 10 albums and I show the files there too with covers... Due some nasty optimizations I can load even 100+ covers and still have a low memory usage but as a coder yourself you know that it won't be good at the long run as more memory is needed to perform better and also to cache some stuff specially when the app is as fancy as @es.

Obvously the results I've got so far are great but that doesn't mean the app is faster... Quite opposite as I've to load some key stuff everytime... The test here show that optimization can be done and that is needed at a certain level... Eventho a balance is needed because there isn't much room when you try to keep the memory usage under the <2mb mark.. Anyways I think what I've showed here is a proof that a nice optimization can be done without problems in .net.

In conclution I think the best amount of memory usage for an like @es should be between 20 - 60mb as is a rasonable level. anyways I had fun trying to beat a very simple app like editor with one of the most fancy app ever created here at ngemu... After all we do all for fun and not for compete

regards
@ruantec
__________________

Current development tools:

Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6
@ruantec is offline   Reply With Quote
Old 3 Weeks Ago   #11 (permalink)
Mobile Fanatic
 
runawayprisoner's Avatar
 
Join Date: Nov 2006
Location: Santa Cruz, CA
Posts: 6,210
Quote:
Originally Posted by KrossX View Post
Windows7 x64:



... >_<
x86 FTW!



Aero also uses a few hundred Ks.


You gotta get it down to roughly 512K if you want to beat Notepad, @ruantec.
Attached Images
File Type: png notepad.png (110.6 KB, 66 views)
File Type: png notepadult.png (30.6 KB, 66 views)
__________________
cChip interpreter WIP - current status: Release Candidate
LRx Filter RC - current performance rating: 9/10
runawayprisoner is offline   Reply With Quote
Old 3 Weeks Ago   #12 (permalink)
I tell you what.
 
BigIg's Avatar
 
Join Date: Aug 2006
Location: Ohio, USA
Posts: 2,273
Beat system idle process xD
__________________
Arrogance and ignorance go hand in hand
BigIg is offline   Reply With Quote
Old 3 Weeks Ago   #13 (permalink)
Regular User ;)
 
Phil's Avatar
 
Join Date: Oct 2007
Location: Naples Florida
Posts: 10,001
My phone can
__________________

A Mac is like an escort, you pay a ton and get nothing.
A PC is like a hooker, it's a lot cheaper and gives you what you're after.. and if unlucky some diseases as well, that's why you gotta use protection. -CC
Phil is offline   Reply With Quote
Old 3 Weeks Ago   #14 (permalink)
Administrator, PCSX2 tester
 
Prafull's Avatar
 
Join Date: Aug 2001
Location: India
Posts: 5,046
WTF that hindi movie stuff doing there???
__________________
E6750, Abit ip35E, MSI GTX260, Transcend 2GB DDR2 800 RAM, BENQ E2200HD.
Prafull is offline   Reply With Quote
Old 3 Weeks Ago   #15 (permalink)
Mobile Fanatic
 
runawayprisoner's Avatar
 
Join Date: Nov 2006
Location: Santa Cruz, CA
Posts: 6,210
Quote:
Originally Posted by BigIg View Post
Beat system idle process xD
Done. ;p Win 7 FTW!



Quote:
Originally Posted by Phil View Post
My phone can
No, it can't! lol Actually, WinMo phones would use up quite a bit of mem, too.
Attached Images
File Type: png sip.png (48.3 KB, 46 views)
__________________
cChip interpreter WIP - current status: Release Candidate
LRx Filter RC - current performance rating: 9/10
runawayprisoner is offline   Reply With Quote
Old 3 Weeks Ago   #16 (permalink)
Emu author
 
@ruantec's Avatar
 
Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,381
Quote:
Originally Posted by Prafull View Post
WTF that hindi movie stuff doing there???
Answer:
my wife is a big Bollywood fan and I like some of the music in those movies
__________________

Current development tools:

Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6
@ruantec is offline   Reply With Quote
Old 3 Weeks Ago   #17 (permalink)
Bruce Willis as Ichigo...
 
strike105x's Avatar
 
Join Date: Apr 2007
Location: ...means Bleach ends after episode 1
Posts: 3,573


Spoiler:
less talk more ti... ups i mean more @ES :P
strike105x is offline   Reply With Quote
Old 3 Weeks Ago   #18 (permalink)
Emu author
 
@ruantec's Avatar
 
Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,381
Quote:
Originally Posted by strike105x View Post
Spoiler:
less talk more ti... ups i mean more @ES :P
sure thing

Quote:
Originally Posted by BigIg View Post
Beat system idle process xD
i admit that i canīt beat that.... but i can beat the System idle in features and CPU usage
for example i got tired of camtasia as it didnīt work as i expected.. hypercam worked fine but none of the recording apps iīve tried so far records movements, effects or audio correctly and all of them records the audio from the mic which is a crap... fraps do a great job but it only records games at fullscreen and is useless to record the desktop so i took some time this weekend and wrote my own code for @ES to record my videos at a accurate speed using some hardware acceleration which beats the System idle and also added some more features to @ES to complete the combo lol

it may use more memory but check this out(the original video quality is very sharp and almost as if you were watching a real time app on your desktop.. sadly i had to compress the video to reduce size):
__________________

Current development tools:

Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6

Last edited by @ruantec; 3 Weeks Ago at 11:50..
@ruantec is offline   Reply With Quote
Old 3 Weeks Ago   #19 (permalink)
Human Metal
 
Cid Highwind's Avatar
 
Join Date: Oct 2002
Location: Holland / Hungary
Posts: 13,550


I'm no coder myself, but I see that screen often enough to know that something hovering at that amount of memory is mighty impressive for what it returns in eye candy and functionality. Kudos
__________________

PC Specs:
CPU: Intel Q8200 @ 2.8GHz
GPU: Sapphire ATi HD4870 / 1024MB / Core: 801 / Mem: 1000
Mobo: Gigabyte EP35-DS3 (rev 2.1)
SPU: Creative X-Fi Xtreme Music
RAM: 2GB Kingston HyperX DDR2 1066 @ 4-4-4-12 ~ 800MHz
HDD: 1TB Samsung Spinpoint, 32MB
PSU: Hiper Type-R 580W
Monitor: Iiyama B2403WS / 1920*1200

Geometry Wars: 198.400
Lumines: 999.999

Join the NGEmu Folding @ Home community NOW!
Cid Highwind is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:50.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5