Keep the stock at a gentle simmer in a saucepan. It must stay hot throughout cooking.
Heat the olive oil and half the butter in a large heavy pan over medium high heat. Cook the mushrooms in batches until golden, about 5 minutes per batch. Season and set aside.
Lower the heat to medium. Add the remaining butter and cook the onion for 5 minutes until soft and translucent.
Add the garlic and cook for 1 minute. Stir in the rice and toast it for 2 minutes until the grains look translucent at the edges.
Pour in the white wine and stir until it has almost completely evaporated.
Add one ladle of hot stock and stir gently until it is mostly absorbed. Continue adding stock one ladle at a time, stirring regularly.
After about 18 minutes, stir the cooked mushrooms back into the pan.
Continue adding stock and stirring for another 5 to 7 minutes, until the rice is creamy and al dente, tender with a slight bite.
Remove from the heat. Stir in the parmesan, thyme and remaining butter. Season with salt and pepper.
Cover and rest for 2 minutes. Serve immediately with parsley and a drizzle of truffle oil if using.