Profile

Cover photo
Vilya Harvey
Worked at The Foundry Visionmongers
Lives in United Kingdom
83 followers|28,918 views
AboutPostsPhotosYouTube

Stream

Vilya Harvey

Shared publicly  - 
 
Faster morton codes with compiler intrinsics
Today I learned that newer Intel processors have an instruction which is tailor-made for generating morton codes: the PDEP instruction. There's an instruction for the inverse as well, PEXT . These exist in 32- and 64-bit versions and you can use them direct...
1
Add a comment...

Vilya Harvey

Shared publicly  - 
 
Whole program lexical analysis
I was thinking about parsing and lexical analysis of source code recently (after all who doesn't... right??). Everywhere I've looked - which admittedly isn't in very many places - parsers still seem to treat input as a stream of tokens. The stream abstracti...
1
Add a comment...

Vilya Harvey

Shared publicly  - 
 
Project Tethys Post-mortem
Project Tethys was my entry for Ludum Dare 29 . Here's the elevator pitch: Project Tethys is a fast-paced underwater 2D shoot-em up inspired by the likes of Defender and Resogun . You control an advanced combat submarine tasked with defending an underwater ...
Project Tethys was my entry for Ludum Dare 29. Here's the elevator pitch: Project Tethys is a fast-paced underwater 2D shoot-em up inspired by the likes of Defender and Resogun. You control an advanced combat submarine taske...
2
Add a comment...

Vilya Harvey

Shared publicly  - 
 
I've written a new blog post about how reassessing my build tools enabled me to iterate on my code a lot faster. Hope you like it!
2
Add a comment...

Vilya Harvey

Shared publicly  - 
 
I wrote a blog post about why the std::vector class in C++ is less efficient than it could be and one easy way to improve it.
1
Jon Dubovsky's profile photoVilya Harvey's profile photo
2 comments
 
Hey, glad you enjoyed the post Jon!

For sure following good practices with std::vector will get you the biggest wins. I think there are still some cases where this is handy though - you don't always know exactly how many elements you're going to need up front.

One thing I didn't touch on in the post is that you when you're growing the vector capacity from N items to 2N items, with a std::vector you temporarily have memory for 3N items allocated. If you can grow the memory in place the maximum you use is 2N. So if you have a situation where 2N items will fit in memory but 3N won't, this can avoid an out-of-memory error.
Add a comment...

Vilya Harvey

Shared publicly  - 
 
Thanks to Facebook's recent email shenanigans I've decided to give G+ a proper try. Let's see how it goes...
1
Stephen Willey's profile photo
 
Well, they've just made the Android app about a thousand times better...
Add a comment...
In his circles
90 people
Have him in circles
83 people
Ben Baker's profile photo
Verdiana Mushema's profile photo
Barry De Beer's profile photo
mOculus io's profile photo
Jason Witting's profile photo
Sonia Barry's profile photo
Rangi Robinson's profile photo
Dan Alderman's profile photo
Jon Starck's profile photo

Vilya Harvey

Shared publicly  - 
 
Awesome tools for Windows users
I moved back to Windows on my home computer a few months back. There are a few amazing free tools I've found since then that have been making my life better and I thought they deserved a shout-out. They are: SumatraPDF A fantastic PDF reader. Does everythin...
1
Add a comment...

Vilya Harvey

Shared publicly  - 
1
Add a comment...

Vilya Harvey

Shared publicly  - 
 
Ludum Dare 29: Beneath the Surface
I'm halfway through making a game for Ludum Dare 29 . The theme this time around is "Beneath the Surface". For once I've had an idea right from the start that's practical, fun and in keeping with the theme. It's a lovely change from my usual pattern of star...
I'm halfway through making a game for Ludum Dare 29. The theme this time around is "Beneath the Surface". For once I've had an idea right from the start that's practical, fun and in keeping with the theme. It's a lovely chang...
1
Add a comment...

Vilya Harvey

Shared publicly  - 
 
I've written a new blog post about the state of occlusion queries in OpenGL ES and why they're not sufficient.
This is a follow-up to my earlier post "WebGL doesn't have query objects". Since I wrote that post, the situation has changed a bit. It's still true to say that WebGL doesn't have query objects, but t...
1
Add a comment...

Vilya Harvey

Shared publicly  - 
 
I've blogged about my results in Ludum Dare 24
The voting has finally finished and the Ludum Dare 24 results are finally out. My game, frankly, did a lot better than I expected: Humour #36 Fun #239 Mood #296 Overall #417 Graphics #600 Innovation ...
1
Stephen Willey's profile photo
 
Great stuff.  Well done on the humour score.  I did have a good chuckle as I played my way through :-)
Add a comment...
People
In his circles
90 people
Have him in circles
83 people
Ben Baker's profile photo
Verdiana Mushema's profile photo
Barry De Beer's profile photo
mOculus io's profile photo
Jason Witting's profile photo
Sonia Barry's profile photo
Rangi Robinson's profile photo
Dan Alderman's profile photo
Jon Starck's profile photo
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
United Kingdom
Links
Contributor to
Work
Employment
  • The Foundry Visionmongers
    Senior Software Engineer
Basic Information
Gender
Male