• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:14
CET 16:14
KST 00:14
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) Sea Duckling Open (Global, Bronze-Diamond) $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BW General Discussion Foreign Brood War MBCGame Torrents [ASL20] Ask the mapmakers — Drop your questions Which season is the best in ASL?
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile ZeroSpace Megathread The Perfect Game
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
JSHOP.CC, NON VBV CC, SPAMMING, RANSOMWARE, BOTNET Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine The Big Programming Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
Formula 1 Discussion 2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
I decided to write a webnov…
DjKniteX
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1748 users

The Big Programming Thread - Page 873

Forum Index > General Forum
Post a Reply
Prev 1 871 872 873 874 875 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Manit0u
Profile Blog Joined August 2004
Poland17504 Posts
April 16 2017 18:35 GMT
#17441
On April 17 2017 03:17 dsyxelic wrote:
Question about android studio: how good of a computer do you or should you have to not have it lag? Did some android projects for a class and almost everybody reported it was extremely laggy besides like mac users. Id want to do more android work but I just cant deal with the lag on my machine and the specs arent that bad... I even used a separate emulator (genymotion) and other settings tricks off google to minimize lag to no avail.


It's a matter of settings for the jetbrains products most of the time. You should set your caches etc. to reasonable levels so the indexing and garbage collection don't take as much time. Another trick I've learned in their products (which are awesome) is checking the "display memory usage" or somesuch option in the menu. Then you get this small bar in the bottom right that shows how much of the allowed memory your IDE is currently using and you can click on it to trigger immediate garbage collection (which drops it down from 1GB to 100MB instantly for example).

I'll post the correct settings on tuesday, when I'm back at my workstation.
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18141 Posts
April 16 2017 19:56 GMT
#17442
as an IDE, android studio (or in fact, IntelliJ) is fantastic. But the actual Android tools worked better from their eclipse-based Android SDK. Any time I click an android-related button my computer lags out and in addition Gradle builds take FOREVER (I want Ant back, it was buggy every now and then, but at least it was fast). But it is what it is.
dsyxelic
Profile Joined May 2010
United States1417 Posts
April 16 2017 22:07 GMT
#17443
On April 17 2017 03:35 Manit0u wrote:
Show nested quote +
On April 17 2017 03:17 dsyxelic wrote:
Question about android studio: how good of a computer do you or should you have to not have it lag? Did some android projects for a class and almost everybody reported it was extremely laggy besides like mac users. Id want to do more android work but I just cant deal with the lag on my machine and the specs arent that bad... I even used a separate emulator (genymotion) and other settings tricks off google to minimize lag to no avail.


It's a matter of settings for the jetbrains products most of the time. You should set your caches etc. to reasonable levels so the indexing and garbage collection don't take as much time. Another trick I've learned in their products (which are awesome) is checking the "display memory usage" or somesuch option in the menu. Then you get this small bar in the bottom right that shows how much of the allowed memory your IDE is currently using and you can click on it to trigger immediate garbage collection (which drops it down from 1GB to 100MB instantly for example).

I'll post the correct settings on tuesday, when I'm back at my workstation.


Ah thanks, hopefully that saves my lag. And yes I agree the IDE itself is great, just the darn lag
TL/SKT
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
April 16 2017 22:11 GMT
#17444
I'd avoid using an emulator if possible. Much better experience with a device.
There is no one like you in the universe.
dsyxelic
Profile Joined May 2010
United States1417 Posts
April 17 2017 00:32 GMT
#17445
On April 17 2017 07:11 Blisse wrote:
I'd avoid using an emulator if possible. Much better experience with a device.


Using apk + device?

Also do you mean the inbult emulator or all emulators in general? Genymotion seemed decent from the few times I used it and a lot more lightweight
TL/SKT
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
April 17 2017 01:54 GMT
#17446
On April 17 2017 09:32 dsyxelic wrote:
Show nested quote +
On April 17 2017 07:11 Blisse wrote:
I'd avoid using an emulator if possible. Much better experience with a device.


Using apk + device?

Also do you mean the inbult emulator or all emulators in general? Genymotion seemed decent from the few times I used it and a lot more lightweight


Not really sure what you mean by using apk + device... but yes, you plug your device to your computer(or set-up adb over tcp), run, and choose to deploy to your device, which yes, puts and runs the apk on your device.

I'm not sure what's is the current state of emulators... because in 3 years I've never used an emulator at work or aside. I think genymotion was the last emulator I used and it was decent versus the built-in emulator with Eclipse.

I see no reason to use an emulator if I could use a device, unless you're doing some non-standard stuff. Unless you have a good desktop or high-end laptop, things aren't going to run as well, with the emulator competing with Android Studio and what not for resources. And you're going to have to test on your phone eventually anyways.
There is no one like you in the universe.
dsyxelic
Profile Joined May 2010
United States1417 Posts
April 17 2017 04:13 GMT
#17447
ah yeah thats what I meant.I actually did it the long way by simply downloading the .apk file and running it on my phone... didn't know you could deploy straight to device

I'll try that too. Never crossed my mind because we had to present using an emulator heh.
TL/SKT
Acrofales
Profile Joined August 2010
Spain18141 Posts
April 17 2017 06:10 GMT
#17448
On April 17 2017 13:13 dsyxelic wrote:
ah yeah thats what I meant.I actually did it the long way by simply downloading the .apk file and running it on my phone... didn't know you could deploy straight to device

I'll try that too. Never crossed my mind because we had to present using an emulator heh.


I agree with Blisse. The two are incomparable, and you'll have a far better experience debugging on a device. However, for UI things, you are almost required to emulate (or have phones and tablets of all shapes and resolutions you want to be compatible with). Similar for backward compatibility (or forward): if you configure your project right, it shouldn't be an issue, but shouldn't and won't are worlds apart.

The built-in emulator is not very good, but adb plays nice with it. Presumably you can get logcat to connect to genymotion, but can you also do that with the debugger? If so, that's a better option. But you definitely want an emulator you can debug on. Despite the advice to do most of your testing on an actual phone.
dsyxelic
Profile Joined May 2010
United States1417 Posts
April 17 2017 07:12 GMT
#17449
gotcha
i'll prob just use genymotion for the emulator needs

i've only had good experiences with it and lag was cut down considerably with it. my only lag currently comes from the IDE itself (and if I use the built in emulator which I haven't for a while).
TL/SKT
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2017-04-17 19:56:16
April 17 2017 19:18 GMT
#17450
I'd like to check some stuff from my combinatorics/probability homework if anyone is willing to take a look

But first I need help understanding a question

+ Show Spoiler +


Let A_1, . . . , A_n be sets such that there exist numbers N_1, . . . , N_n such that:
For all 1 ≤ k ≤ n, for all i_1 < i_2 < · · · < i_k
| A_i1 ∩ A_i2 ∩ · · · ∩ A_ik | = N_k.

Write the law of inclusion and exclusion for A_1, . . . , A_n BUT (for example) instead of having clumsy terms like

|A1 ∩ A2 ∩ A3| you’ll have N_3.

SO- it should have the form

|A1 ∪ · · · ∪ An| = A FUNCTION OF N_1, . . . , N_n



There were other questions like this.. and I understood them.
But i don't understand this at all.
it just doesn't make sense to me

checking some other stuff:

+ Show Spoiler +

You have a deck with 20 ranks, 3 suits (so 60 cards total). A "hand" is 6 cards.

What is the odds of getting a hand of all primes of the same suit?

I put:

3*(8 choose 6) / (60 choose 6)

60 choose 6 is my denominator for all of this because that is the total possible hands dealt
for the numerator there is 8 ranks that are primes and i am picking 6 of them. Then there are also 3 different suits where I can do this, so that is why I multiply by 3.


odds of getting all primes?

(24 choose 6) / (60 choose 6)
24 different primes, you pick 6 of them

odds of getting 6 primes all of different ranks?

I am not really sure about this one. I am thinking my numerator could be:

24*21*18*15*12*9 - but they don't want us to do it this way.
I also think I could do it as [(24 choose 6) - pairs and triplets], but I am not sure how to do that. so yeah could use help here


odds of getting a "6 card straight all of the same suit" ?

1-6 up to 15-20 = 15 possible straights, over 3 suits. 3 * 15 = 45
45/(60 choose 6)


odds of getting a "6 card straight but not all of the same suit?"

[15*3^6 / (60 choose 6) ] - odds of the last question
15 possible starting ranks, then pick each card 6 times out of 3 available suits



last thing to check is a bayes problem
+ Show Spoiler +

we have 2 coins. a fair one and a biased one
the biased one comes up H 9/10, and T 1/10

we pick a coin at random, flip it twice.
what is the odds the coin is biased if it comes up Heads and then tails?

I did .5(9/100)/.5(9/100+1/4)

which is: odds of it being biased * (odds of it being heads if it is biased * odds of it being tails if it is biased)
over
(odds of it being biased) * (odds of it being heads if it is biased * odds of it being tails if it is biased) * odds of it being fair * (odds of it being heads if its fair * odds of it being tails if it is fair)

with some algebra i get: 1/(1 + 25/9) which sounds about right i guess
Manit0u
Profile Blog Joined August 2004
Poland17504 Posts
April 18 2017 07:51 GMT
#17451
On April 17 2017 07:07 dsyxelic wrote:
Show nested quote +
On April 17 2017 03:35 Manit0u wrote:
On April 17 2017 03:17 dsyxelic wrote:
Question about android studio: how good of a computer do you or should you have to not have it lag? Did some android projects for a class and almost everybody reported it was extremely laggy besides like mac users. Id want to do more android work but I just cant deal with the lag on my machine and the specs arent that bad... I even used a separate emulator (genymotion) and other settings tricks off google to minimize lag to no avail.


It's a matter of settings for the jetbrains products most of the time. You should set your caches etc. to reasonable levels so the indexing and garbage collection don't take as much time. Another trick I've learned in their products (which are awesome) is checking the "display memory usage" or somesuch option in the menu. Then you get this small bar in the bottom right that shows how much of the allowed memory your IDE is currently using and you can click on it to trigger immediate garbage collection (which drops it down from 1GB to 100MB instantly for example).

I'll post the correct settings on tuesday, when I'm back at my workstation.


Ah thanks, hopefully that saves my lag. And yes I agree the IDE itself is great, just the darn lag


Ok, here goes. You can access it via Help -> Edit Custom VM Options... (or Edit Custom Properties)


-Xms2048m
-Xmx2048m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Dawt.useSystemAAFontSettings=lcd
-Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine


You can tinker around with it. I've heard people had different results with different memory settings (sometimes lower is somehow better for compilation time etc. and I don't really know why).
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18141 Posts
April 18 2017 08:57 GMT
#17452
On April 18 2017 04:18 travis wrote:
I'd like to check some stuff from my combinatorics/probability homework if anyone is willing to take a look

But first I need help understanding a question

+ Show Spoiler +


Let A_1, . . . , A_n be sets such that there exist numbers N_1, . . . , N_n such that:
For all 1 ≤ k ≤ n, for all i_1 < i_2 < · · · < i_k
| A_i1 ∩ A_i2 ∩ · · · ∩ A_ik | = N_k.

Write the law of inclusion and exclusion for A_1, . . . , A_n BUT (for example) instead of having clumsy terms like

|A1 ∩ A2 ∩ A3| you’ll have N_3.

SO- it should have the form

|A1 ∪ · · · ∪ An| = A FUNCTION OF N_1, . . . , N_n



There were other questions like this.. and I understood them.
But i don't understand this at all.
it just doesn't make sense to me

What is being asked is to give a general formula for the rank of the union of A1... An, but using the numbers Ni. However, your notation is a bit confusing. I'm assuming that the ranks of all Ai are the same, and furthermore the ranks of all intersections are the same, e.g.: |A1| = |A2|, but also |A1 ∩ A2| = |A2 ∩ A3|

In that case, it's fairly easy. Here it is for n=2, but it's trivial to write it for any general n using the general formula for the inclusion-exclusion principle.

|A1 ∪ A2| = |A1| + |A2| - |A1 ∩ A2| = N1 + N1 - N2 = 2N1 - N2



checking some other stuff:

+ Show Spoiler +

You have a deck with 20 ranks, 3 suits (so 60 cards total). A "hand" is 6 cards.

What is the odds of getting a hand of all primes of the same suit?

I put:

3*(8 choose 6) / (60 choose 6)

60 choose 6 is my denominator for all of this because that is the total possible hands dealt
for the numerator there is 8 ranks that are primes and i am picking 6 of them. Then there are also 3 different suits where I can do this, so that is why I multiply by 3.


odds of getting all primes?

(24 choose 6) / (60 choose 6)
24 different primes, you pick 6 of them

odds of getting 6 primes all of different ranks?

I am not really sure about this one. I am thinking my numerator could be:

24*21*18*15*12*9 - but they don't want us to do it this way.
I also think I could do it as [(24 choose 6) - pairs and triplets], but I am not sure how to do that. so yeah could use help here


odds of getting a "6 card straight all of the same suit" ?

1-6 up to 15-20 = 15 possible straights, over 3 suits. 3 * 15 = 45
45/(60 choose 6)


odds of getting a "6 card straight but not all of the same suit?"

[15*3^6 / (60 choose 6) ] - odds of the last question
15 possible starting ranks, then pick each card 6 times out of 3 available suits



last thing to check is a bayes problem
+ Show Spoiler +

we have 2 coins. a fair one and a biased one
the biased one comes up H 9/10, and T 1/10

we pick a coin at random, flip it twice.
what is the odds the coin is biased if it comes up Heads and then tails?

I did .5(9/100)/.5(9/100+1/4)

which is: odds of it being biased * (odds of it being heads if it is biased * odds of it being tails if it is biased)
over
(odds of it being biased) * (odds of it being heads if it is biased * odds of it being tails if it is biased) * odds of it being fair * (odds of it being heads if its fair * odds of it being tails if it is fair)

with some algebra i get: 1/(1 + 25/9) which sounds about right i guess


Only really skimmed this, but it generally seems ok.
loginn
Profile Blog Joined January 2011
France815 Posts
Last Edited: 2017-04-18 09:09:33
April 18 2017 09:04 GMT
#17453
On April 18 2017 04:18 travis wrote:
I'd like to check some stuff from my combinatorics/probability homework if anyone is willing to take a look

But first I need help understanding a question

+ Show Spoiler +


Let A_1, . . . , A_n be sets such that there exist numbers N_1, . . . , N_n such that:
For all 1 ≤ k ≤ n, for all i_1 < i_2 < · · · < i_k
| A_i1 ∩ A_i2 ∩ · · · ∩ A_ik | = N_k.

Write the law of inclusion and exclusion for A_1, . . . , A_n BUT (for example) instead of having clumsy terms like

|A1 ∩ A2 ∩ A3| you’ll have N_3.

SO- it should have the form

|A1 ∪ · · · ∪ An| = A FUNCTION OF N_1, . . . , N_n



There were other questions like this.. and I understood them.
But i don't understand this at all.
it just doesn't make sense to me

checking some other stuff:

+ Show Spoiler +

You have a deck with 20 ranks, 3 suits (so 60 cards total). A "hand" is 6 cards.

What is the odds of getting a hand of all primes of the same suit?

I put:

3*(8 choose 6) / (60 choose 6)

60 choose 6 is my denominator for all of this because that is the total possible hands dealt
for the numerator there is 8 ranks that are primes and i am picking 6 of them. Then there are also 3 different suits where I can do this, so that is why I multiply by 3.


odds of getting all primes?

(24 choose 6) / (60 choose 6)
24 different primes, you pick 6 of them

odds of getting 6 primes all of different ranks?

I am not really sure about this one. I am thinking my numerator could be:

24*21*18*15*12*9 - but they don't want us to do it this way.
I also think I could do it as [(24 choose 6) - pairs and triplets], but I am not sure how to do that. so yeah could use help here


odds of getting a "6 card straight all of the same suit" ?

1-6 up to 15-20 = 15 possible straights, over 3 suits. 3 * 15 = 45
45/(60 choose 6)


odds of getting a "6 card straight but not all of the same suit?"

[15*3^6 / (60 choose 6) ] - odds of the last question
15 possible starting ranks, then pick each card 6 times out of 3 available suits



last thing to check is a bayes problem
+ Show Spoiler +

we have 2 coins. a fair one and a biased one
the biased one comes up H 9/10, and T 1/10

we pick a coin at random, flip it twice.
what is the odds the coin is biased if it comes up Heads and then tails?

I did .5(9/100)/.5(9/100+1/4)

which is: odds of it being biased * (odds of it being heads if it is biased * odds of it being tails if it is biased)
over
(odds of it being biased) * (odds of it being heads if it is biased * odds of it being tails if it is biased) * odds of it being fair * (odds of it being heads if its fair * odds of it being tails if it is fair)

with some algebra i get: 1/(1 + 25/9) which sounds about right i guess


I think the bayes one is wrong because you multiply the odds of the biased coin producing heads then tails with the odds of the unbiased coin producing heads then tails when you should be adding them together.

I get (0.5 * 0.09)/((0.5 * 0.9 * 0.1)+(0.5 * 0.5 * 0.5)) = 0.2647

I might be wrong too though

EDIT : nvm it is correct. The explanation is wrong and that confused me but the result / calculations are good
Stephano, Taking skill to the bank since IPL3. Also Lucifron and FBH
Manit0u
Profile Blog Joined August 2004
Poland17504 Posts
April 18 2017 14:46 GMT
#17454
Could any of you suggest some good online math courses? I'm seriously considering returning to uni to get a degree in maths but I haven't really touched any of that in like 10 years so the term "rusty" doesn't even begin to cover my situation...

Some entry-level uni stuff would be great, something to help me recall knowledge from high school and beyond without overwhelming me entirely right off the bat (I used to be pretty good with algebra, analysis and statistics at uni, but it was long, long ago).
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18141 Posts
April 18 2017 14:49 GMT
#17455
Khan Academy is excellent.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2017-04-18 14:54:52
April 18 2017 14:54 GMT
#17456
There are some good ones on youtube, depending on the courses you want.

MIT open courseware will be good for most courses.

Entry level uni stuff you either want calc 1 or you want pre-calc which is like basic functions, graphing, intro trig and some other random stuff.

So i'd recommend khan academy precalculus. However if they go through sections without many problem sets (which is sometimes the case on khan academy), I'd recommend you look up problem sets to do if it's a trouble section for you.
Manit0u
Profile Blog Joined August 2004
Poland17504 Posts
April 18 2017 15:56 GMT
#17457
I'll check out Khan Academy. Quickly skimmed through their course list and it seems like a right place to get back on highschool math (since stuff like differential calculus is highschool level here).
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2017-04-18 23:02:06
April 18 2017 23:01 GMT
#17458
I'm doing a math course part-time at the moment so I can learn/remember some math. One of my teachers recommends http://www.mathtutor.ac.uk/ , but I've not used it much. I rely more on Khan Academy youtube videos.
dsyxelic
Profile Joined May 2010
United States1417 Posts
April 19 2017 02:25 GMT
#17459
On April 18 2017 16:51 Manit0u wrote:
Show nested quote +
On April 17 2017 07:07 dsyxelic wrote:
On April 17 2017 03:35 Manit0u wrote:
On April 17 2017 03:17 dsyxelic wrote:
Question about android studio: how good of a computer do you or should you have to not have it lag? Did some android projects for a class and almost everybody reported it was extremely laggy besides like mac users. Id want to do more android work but I just cant deal with the lag on my machine and the specs arent that bad... I even used a separate emulator (genymotion) and other settings tricks off google to minimize lag to no avail.


It's a matter of settings for the jetbrains products most of the time. You should set your caches etc. to reasonable levels so the indexing and garbage collection don't take as much time. Another trick I've learned in their products (which are awesome) is checking the "display memory usage" or somesuch option in the menu. Then you get this small bar in the bottom right that shows how much of the allowed memory your IDE is currently using and you can click on it to trigger immediate garbage collection (which drops it down from 1GB to 100MB instantly for example).

I'll post the correct settings on tuesday, when I'm back at my workstation.


Ah thanks, hopefully that saves my lag. And yes I agree the IDE itself is great, just the darn lag


Ok, here goes. You can access it via Help -> Edit Custom VM Options... (or Edit Custom Properties)


-Xms2048m
-Xmx2048m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Dawt.useSystemAAFontSettings=lcd
-Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine


You can tinker around with it. I've heard people had different results with different memory settings (sometimes lower is somehow better for compilation time etc. and I don't really know why).


holy moly as soon as I put that in I felt a noticeable difference in simple button clicks and switching between activities. I don't know how it did it but looks great.
thanks a lot, hopefully I won't have anymore lag issues. I definitely want to get another android project in now.
TL/SKT
Manit0u
Profile Blog Joined August 2004
Poland17504 Posts
Last Edited: 2017-04-19 08:35:43
April 19 2017 08:35 GMT
#17460
No problem. Glad I could help.
Time is precious. Waste it wisely.
Prev 1 871 872 873 874 875 1032 Next
Please log in or register to reply.
Live Events Refresh
SC Evo League
12:30
#17
CaptCanuck3511
LiquipediaDiscussion
WardiTV 2025
12:00
Group Stage 1 - Group A
WardiTV1236
ComeBackTV 501
TaKeTV 277
IndyStarCraft 227
Rex134
LiquipediaDiscussion
CranKy Ducklings
10:00
Sea Duckling Open #141
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 227
LamboSC2 151
Rex 134
BRAT_OK 25
StarCraft: Brood War
Britney 31875
Calm 3941
Jaedong 2098
EffOrt 689
Stork 623
Mini 594
Light 550
BeSt 539
GuemChi 499
firebathero 349
[ Show more ]
ZerO 284
Hyuk 274
Rush 213
910 162
Larva 131
sorry 73
Killer 69
Sharp 64
PianO 50
Mong 40
Barracks 33
ajuk12(nOOB) 28
Terrorterran 23
soO 23
Rock 19
SilentControl 9
Dota 2
Gorgc4925
qojqva4026
XcaliburYe888
Fuzer 432
420jenkins247
LuMiX1
Counter-Strike
fl0m3829
zeus695
Super Smash Bros
Mew2King138
Heroes of the Storm
Khaldor291
Other Games
B2W.Neo1543
crisheroes432
Hui .376
Happy135
XaKoH 113
KnowMe29
ZerO(Twitch)19
Organizations
Other Games
EGCTV550
StarCraft: Brood War
lovetv 10
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Reevou 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3592
• lizZardDota282
League of Legends
• Jankos2404
Upcoming Events
PSISTORM Gaming Misc
1h 41m
Freeedom1
IPSL
1h 46m
Dewalt vs ZZZero
BSL 21
4h 46m
Sziky vs OyAji
Gypsy vs eOnzErG
OSC
6h 46m
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
18h 46m
WardiTV 2025
20h 46m
OSC
23h 46m
IPSL
1d 1h
Bonyth vs KameZerg
BSL 21
1d 4h
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
1d 17h
[ Show More ]
Wardi Open
1d 20h
StarCraft2.fi
2 days
Monday Night Weeklies
2 days
Replay Cast
2 days
WardiTV 2025
2 days
StarCraft2.fi
3 days
PiGosaur Monday
3 days
StarCraft2.fi
4 days
Tenacious Turtle Tussle
4 days
The PondCast
4 days
WardiTV 2025
4 days
StarCraft2.fi
5 days
WardiTV 2025
5 days
StarCraft2.fi
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-12-04
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
WardiTV 2025
META Madness #9
Light HT
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
RSL Offline Finals
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.