Larian Studios20 open jobs

Engine Programmer

Software engineeringPosted 3 days agofrom Larian Studios's own hiring page

Work type
On-siteUnited Kingdom
Experience
3+ years
Pay
Not listedUsually £40k a yearSoftware engineering, median at 1–4 years, in the UK (Payscale)
Posted
3 days ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on C++ and Networking

About the job

With multiple awards to our name, Larian Studios has proven that we’re dedicated to delivering high-quality role-playing games. As we move on to new projects, the studio that brought you Baldur’s Gate 3 & Divinity: Original Sin 2 is looking for an Engine Programmer to join the team and help us in crafting the high calibre games our fans have come to expect.

Responsibilities

  • Work on all aspects of engine development, notably, animation-related systems
  • Write performant, robust and maintainable code
  • Debug, profile and optimise code to hit quality and performance targets
  • Contribute to code reviews, testing and documentation
  • Show strong passion for making the highest quality state-of-the-art games
  • Be an active participant in the design and production of the engine, as well as tools or gameplay systems
  • Mentor and support team members

Requirements

  • Proficiency in C++Open-minded, willing to collaborate, experiment and iterate over a specific feature
  • Passion for making and playing great games
  • Experience with data-driven development
  • Experience with a wide range of CPU and GPU profiling tools
  • Multithreading should be second nature
  • Knowledge of modern hardware
  • This is a full-time, on-site role, requiring your presence in the office to support collaboration
  • A professional level of written and spoken English

Nice to Haves

  • 3+ years of game development experience
  • Bachelor's / Master's degree in computer science or software engineering
  • Experience with modern graphics API's (Vulkan, D3D12, GNM, ...)
  • Experience with modern console development (PS4/5, Xbox One/Series, Switch 1/2...)
  • Experience with SIMD programming
  • Experience with low-level x86/ARM/DXBC/Spir-V assembly
  • Experience with networking / multiplayer
  • Track record of major contributions to shipped games

What We Offer

  • An international team of over 600 employees spread across 7 studios around the world, each of which have their own unique qualities, and maintain a small-studio feel
  • An open, collaborative environment where ideas are welcome and encouraged
  • A managerial team consisting of highly experienced game developers at the top of their fields
  • Sharing hobbies and passions with like-minded colleagues
  • Inclusive environment with many activities organized by the studios or the employees
  • Commitment to making the best game possible for the fans, including listening to community feedback

Interested?Engine Programmer at Larian Studios

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on C++ and Networking

Interview questions for this job

For the skills the ad mentions: C++ and Networking.

198 questions
  • What does the explicit keyword mean?C++

    The compiler is allowed to make one implicit conversion to resolve the parameters to a function. This means that the compiler can use constructors callable with a single parameter to convert from one type to another in order to get the right type for a parameter.

    Here's an example with converting constructors that shows how it works:

    struct Foo {
        // Single parameter constructor, can be used as an implicit conversion.
        // Such a constructor is called "converting constructor".
        Foo(int x) {}
    };
    struct Faz {
        // Also a converting constructor.
        Faz(Foo foo) {}
    };
    // The parameter is of type Foo, not of type int, so it looks like
    // we have to pass a Foo.
    void bar(Foo foo) {};
    int main() {
        // However, the converting constructor allows us to pass an int.
        bar(42);
        // Also allowed thanks to the converting constructor.
        Foo foo = 42;
        // Error! This would require two conversions (int -> Foo -> Faz).
        Faz faz = 42;
    }
    

    Prefixing the explicit keyword to the constructor prevents the compiler from using that constructor for implicit conversions. Adding it to the above class will create a compiler error at the function call bar(42). It is now necessary to call for conversion explicitly with bar(Foo(42))

    The reason you might want to do this is to avoid accidental construction that can hide bugs.
    Contrived example:

    • You have a MyString class with a constructor that constructs a string of the given size. You have a function print(const MyString&) (as well as an overload print (char *string)), and you call print(3) (when you actually intended to call print("3")). You expect it to print "3", but it prints an empty string of length 3 instead.

    From Stack Overflow: asked by Skizz, answered by Skizz (CC BY-SA 4.0)

  • What causes the 'Connection Refused' message?Networking

    Note: This message is a symptom of the problem you are trying to solve. Understanding the cause of the message will ultimately lead you to solving your problem.

    The message 'Connection Refused' has two main causes:

    1. Nothing is listening on the IP:Port you are trying to connect to.
    2. The port is blocked by a firewall.

    No process is listening.

    This is by far the most common reason for the message. First ensure that you are trying to connect to the correct system. If you are then to determine if this is the problem, on the remote system run netstat or ss1 e.g. if you are expecting a process to be listening on port 22222

    sudo netstat -tnlp | grep :22222
    

    or

    ss -tnlp | grep :22222
    

    For OSX a suitable command is

    sudo netstat -tnlp tcp | grep '\.22222 '
    

    If nothing is listening then the above will produce no output. If you see some output then confirm that it's what you expect then see the firewall section below.

    If you don't have access to the remote system and want to confirm the problem before reporting it to the relevant administrators you can use tcpdump (wireshark or similar).

    When a connection is attempted to an IP:port where nothing is listening, the response from the remote system to the initial SYN packet is a packet with the flags RST,ACK set. This closes the connection and causes the Connection Refused message e.g.

    $ sudo tcpdump -n host 192.0.2.1 and port 22222
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on enp14s0, link-type EN10MB (Ethernet), capture size 262144 bytes

    12:31:27.013976 IP 192.0.2.2.34390 > 192.0.2.1.22222: Flags [S], seq 1207858804, win 29200, options [mss 1460,sackOK,TS val 15306344 ecr 0,nop,wscale 7], length 0

    12:31:27.020162 IP 192.0.2.1.22222 > 192.0.2.2.34390: Flags [R.], seq 0, ack 1207858805, win 0, length 0

    Note that tcpdump uses a . to represent the ACK flag.

    Port is blocked by a firewall

    If the port is blocked by a firewall and the firewall has been configured to respond with icmp-port-unreachable this will also cause a connection refused message. Again you can see this with tcpdump (or similar)

    $ sudo tcpdump -n icmp
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

    listening on enp14s0, link-type EN10MB (Ethernet), capture size 262144 bytes 13:03:24.149897 IP 192.0.2.1 > 192.0.2.2: ICMP 192.0.2.1 tcp port 22222 unreachable, length 68

    Note that this also tells us where the blocking firewall is.

    So now you know what's causing the Connection refused message you should take appropriate action e.g. contact the firewall administrator or investigate the reason for the process not listening.

    1 Other tools are likely available.

    From Server Fault: asked by user9517, answered by user9517 (CC BY-SA 4.0)

  • Why can templates only be implemented in the header file?C++

    Caveat: It is not necessary to put the implementation in the header file, see the alternative solution at the end of this answer.

    Anyway, the reason your code is failing is that, when instantiating a template, the compiler creates a new class with the given template argument. For example:

    template<typename T>
    struct Foo
    {
        T bar;
        void doSomething(T param) {/* do stuff using T */}
    };
    // somewhere in a .cpp
    Foo<int> f; 
    

    When reading this line, the compiler will create a new class (let's call it FooInt), which is equivalent to the following:

    struct FooInt
    {
        int bar;
        void doSomething(int param) {/* do stuff using int */}
    };
    

    Consequently, the compiler needs to have access to the implementation of the methods, to instantiate them with the template argument (in this case int). If these implementations were not in the header, they wouldn't be accessible, and therefore the compiler wouldn't be able to instantiate the template.

    A common solution to this is to write the template declaration in a header file, then implement the class in an implementation file (for example .tpp), and include this implementation file at the end of the header.

    Foo.h

    template <typename T>
    struct Foo
    {
        void doSomething(T param);
    };
    #include "Foo.tpp"
    

    Foo.tpp

    template <typename T>
    void Foo<T>::doSomething(T param)
    {
        //implementation
    }
    

    This way, implementation is still separated from declaration, but is accessible to the compiler.

    Alternative solution

    Another solution is to keep the implementation separated, and explicitly instantiate all the template instances you'll need:

    Foo.h

    // no implementation
    template <typename T> struct Foo { ... };
    

    Foo.cpp

    // implementation of Foo's methods
    // explicit instantiations
    template class Foo<int>;
    template class Foo<float>;
    // You will only be able to use Foo with int or float
    

    If my explanation isn't clear enough, you can have a look at the C++ Super-FAQ on this subject.

    From Stack Overflow: asked by MainID, answered by Luc Touraille (CC BY-SA 4.0)

  • What are HTTP response headers?Networking

    Much like an HTTP request, an HTTP response comes with headers that convey important information such as the language and format of the data being sent in the response body.

    From Tech Vault (Apache 2.0)

  • What are the basic rules and idioms for operator overloading?C++

    Common Operators to Overload

    Most of the work in overloading operators is boilerplate code. That is little wonder, since operators are merely syntactic sugar. Their actual work could be done by (and often is forwarded to) plain functions. But it is important that you get this boilerplate code right. If you fail, either your operator’s code won’t compile, your users’ code won’t compile, or your users’ code will behave surprisingly.

    Assignment Operator

    There's a lot to be said about assignment. However, most of it has already been said in GMan's famous Copy-And-Swap FAQ, so I'll skip most of it here, only listing the perfect assignment operator for reference:

    X& X::operator=(X rhs)
    {
      swap(rhs);
      return *this;
    }
    

    Stream Insertion and Extraction

    Disclaimer
    For overloading << and >> as bitwise shift operators, skip to the section Binary Arithmetic Operators.

    The bitwise shift operators << and >>, although still used in hardware interfacing for the bit-manipulation functions they inherit from C, have become more prevalent as overloaded stream input and output operators in most applications.

    The stream operators, among the most commonly overloaded operators, are binary infix operators for which the syntax does not specify any restriction on whether they should be members or non-members. However, their left operands are streams from the standard library, and you cannot add member functions to those1, so you need to implement these operators for your own types as non-member functions2. The canonical forms of the two are these:

    std::ostream& operator<<(std::ostream& os, const T& obj)
    {
      // Write obj to stream
      return os;
    }
    std::istream& operator>>(std::istream& is, T& obj)
    {
      // Read obj from stream
      if( /* no valid object of T found in stream */ )
        is.setstate(std::ios::failbit);
      return is;
    }
    

    When implementing operator>>, manually setting the stream’s state is only necessary when the reading itself succeeded, but the result is not what would be expected.

    1 Note that some of the << overloads of the standard library are implemented as member functions, and some as free functions. Only the locale-dependent functions are member functions, such as operator<<(long).

    2 According to the rules of thumb, the insertion/extraction operators should be member functions because they modify the left operand. However, we cannot follow the rules of thumb here.

    Function Call Operator

    The function call operator, used to create function objects, also known as functors, must be defined as a member function, so it always has the implicit this argument of member functions. Other than this, it can be overloaded to take any number of additional arguments, including zero.

    Here's an example of the syntax:

    struct X {
        // Overloaded call operator
        int operator()(const std::string& y) {
            return /* ... */;
        }
    };
    

    Usage:

    X f;
    int a = f("hello");
    

    Throughout the C++ standard library, function objects are always copied. Your own function objects should therefore be cheap to copy. If a function object absolutely needs to use data which is expensive to copy, it is better to store that data elsewhere and have the function object refer to it.

    Comparison Operators

    Read the rest at the sourceFrom Stack Overflow: asked by sbi, answered by sbi (CC BY-SA 4.0)

  • What are your hobbies and interests?Behavioural

    Employers will want to get to know you and may ask things like:

    • what do you do in your spare time?
    • what are your hobbies and interests?

    Show what kind of personal qualities, interests and skills you have. For example, you could talk about:

    • cooking - to show you're organised and can follow instructions
    • travel - to show you're adventurous and flexible
    • team sports - to show you're a team player with good communication
    • music - to show you're creative

    If the job requires certain skills, you should demonstrate these in your examples.

    Example

    If it's a graphic designer role, you could talk about taking a desktop publishing course.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Software engineer jobs in the UK (313)