The USSR didn't grant any individual citizen IP rights and it worked out pretty well for them.
I'm saying this with all the love in my heart, but royalties under socialism is a petit bourgeois dream. "I'll make a super cool app and get paid millions for it and never have to work again!" and I get it, because who actually wants to get up every morning in capitalism?
But in socialism, the result of your labour is socialised. We don't have the socialisation of labour and anarchy of production, we have the socialisation of both.
You make a great app, you get perhaps some recognition, the state takes ownership of it, and can make it available to your peers free of charge. Remember that by being granted royalties for your creation (as much as it can be considered your sole creation), you effectively increase the costs for someone else to use your product and prevent some from using it. This shouldn't happen in socialism. It would lead us right back to capitalism.
If it's a team effort and you have 5, 6 or more authors, with all of them being paid residuals, you have to multiply the price of the product to cover their share as well.
It's in fact become more apparent than ever that software needs to be free in all ways in the 21st century.
It's actually interesting you mention film directors because their unions fought to get residuals. They used to be (and still are outside of the big names) considered employees of a studio who were hired to deliver a product, and once again studios are trying to cut the costs of labour. They used to be paid a pittance to direct movies (compared to the time put into a single project) and then the company would make millions out of this. It also gave them revenue during the "off-seasons" if there were fewer productions or smaller budget ones ongoing, since they were at the mercy of the studio putting them on a project.