I downloaded the osm.pbf files from planetosm and I am using them in an application which will work offline, I need to convert the osm.pbf file to raster mbtiles file, I want to do this for a specific part of the world. I have searched it online and the only solution I could find was using "Maperitive", the application works and does as intended by using its "generate-mbtiles" command but I am performing this action while covering parts of a country and with zoom levels up to 16 which is what I need and the application starts but it is slow with rendering speeds of about 2.5-3 tiles per sec. And after a while it just stops responding, after checking memory usage I see that the app isn't doing anything.
I want to know if there is any other to convert osm.pbf files to raster mbtiles format. I have the time and resource to convert but it should work. Maperitive is not working all the way which is why I am here requesting for help.