If your engine doesn't need to render objects outside the viewport, then you don't need to generate those objects until you actually need to render it.
If the design of your roguelike limits player vision so they only see their surroundings, then instead of generating the 512 x 512 map in one go, you can improve the performance/memory usage by generating only the…
Every few seconds the screen freezes for a fraction of a second. This happened to me on both Chrome and Firefox. I suspect the lag is caused by garbage collection taking too much time. I ran into a similar issue on…
Screamed at JavaScript for failing at big integer multiplications. Got it after rewriting in python. Here is my poorly written explanation. --------- MAJOR SPOILERS --------- Let's multiply unique prime numbers and…
This game is quite different from Conway's Game of Life because it's not deterministic. During a turn, cells will rely on Math.random to find whether to move or divide; the direction that the cell move into is also…
Can you simplify the form and save user's time by figuring out the type credit card from the number? (IIRC, all Visa cards start with 4)
I recently found that AngularJS has supports for promises. I replaced some of the callback code to use promises and it's a lot more readable. Callbacks: Backend.CallA(param, function() { aDone = true; if (aDone &&…
I've started reading this after I found it on an old HN post. I went through everything except chapter 12, 13, and the latest one that just came out. I would highly recommend learning OpenGL from this tutorial if you…
As someone who's been watching professional Korean SC competition for almost 10 years, the strategy described by your brother can be found from many high class players. Unlike Warcraft3 or other RTS, units in SC have…
Sold out online at future shop, was going to get one. I could try door crashing the store tomorrow and see if they still have the one for demo... http://www.futureshop.ca/en-CA/product/hewlett-packard-hp-16...
As someone who also like random candies, I wonder if it is cheaper to just order candies straight from Japan (Amazon Japan or maybe Ebay?) I am stealing idea here, but that would be another way to get more candies.
How was the rendering done? I guess that some facial features are made from blended texture mapped polygons (the hair and the neck). The face and the eyes might require some other tricks. What amazes me is how efficient…
This explains many mysteries from Starcraft 1: bad replay file after patching, small replay file sizes, low network traffic usage from multiplayer even on big maps. The hash value sent between player also hints the…
I wonder if the accuracy of this report was just base on some lucky guesses. Right now, there are probably hundreds of such predictions about the future. Look at them again in 20 years, most of them will probably be…
That was a great use of a huge magnifying glass. If he can somehow mass produce this, it would bring the cost of making planting pots to almost nothing. One problem with this design is that the light would deflect off…
I found a way to do this in XP. (Vista or 7 should be similar) 1. Open "Documents and Settings\<user name>\Application Data\Mozilla\Firefox\Profiles\<profile>\extensions 2. Find the folder for the…
Hard to believe there will be an event like this in Waterloo, I am really interested. Hope you are okay with some newbie uw co-op students.
So the "popular I love anal" was just an accidental discovery having no relation with the actual encryption method.
If your engine doesn't need to render objects outside the viewport, then you don't need to generate those objects until you actually need to render it.
If the design of your roguelike limits player vision so they only see their surroundings, then instead of generating the 512 x 512 map in one go, you can improve the performance/memory usage by generating only the…
Every few seconds the screen freezes for a fraction of a second. This happened to me on both Chrome and Firefox. I suspect the lag is caused by garbage collection taking too much time. I ran into a similar issue on…
Screamed at JavaScript for failing at big integer multiplications. Got it after rewriting in python. Here is my poorly written explanation. --------- MAJOR SPOILERS --------- Let's multiply unique prime numbers and…
This game is quite different from Conway's Game of Life because it's not deterministic. During a turn, cells will rely on Math.random to find whether to move or divide; the direction that the cell move into is also…
Can you simplify the form and save user's time by figuring out the type credit card from the number? (IIRC, all Visa cards start with 4)
I recently found that AngularJS has supports for promises. I replaced some of the callback code to use promises and it's a lot more readable. Callbacks: Backend.CallA(param, function() { aDone = true; if (aDone &&…
I've started reading this after I found it on an old HN post. I went through everything except chapter 12, 13, and the latest one that just came out. I would highly recommend learning OpenGL from this tutorial if you…
As someone who's been watching professional Korean SC competition for almost 10 years, the strategy described by your brother can be found from many high class players. Unlike Warcraft3 or other RTS, units in SC have…
Sold out online at future shop, was going to get one. I could try door crashing the store tomorrow and see if they still have the one for demo... http://www.futureshop.ca/en-CA/product/hewlett-packard-hp-16...
As someone who also like random candies, I wonder if it is cheaper to just order candies straight from Japan (Amazon Japan or maybe Ebay?) I am stealing idea here, but that would be another way to get more candies.
How was the rendering done? I guess that some facial features are made from blended texture mapped polygons (the hair and the neck). The face and the eyes might require some other tricks. What amazes me is how efficient…
This explains many mysteries from Starcraft 1: bad replay file after patching, small replay file sizes, low network traffic usage from multiplayer even on big maps. The hash value sent between player also hints the…
I wonder if the accuracy of this report was just base on some lucky guesses. Right now, there are probably hundreds of such predictions about the future. Look at them again in 20 years, most of them will probably be…
That was a great use of a huge magnifying glass. If he can somehow mass produce this, it would bring the cost of making planting pots to almost nothing. One problem with this design is that the light would deflect off…
I found a way to do this in XP. (Vista or 7 should be similar) 1. Open "Documents and Settings\<user name>\Application Data\Mozilla\Firefox\Profiles\<profile>\extensions 2. Find the folder for the…
Hard to believe there will be an event like this in Waterloo, I am really interested. Hope you are okay with some newbie uw co-op students.
So the "popular I love anal" was just an accidental discovery having no relation with the actual encryption method.