mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 02:22:09 +08:00
40757d9d01
* mapsd -> cpu * link directly to mesa * Fix gitignore * without launcher script * dont change that * dont need that * add to files_common * rename to configure cpu rendering * without a symlink! * update time refs * update ref * update ref * remove duplicate include * bump up again --------- Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: bdf2fa0f83d92c67c3fc90972ca1d71af543fc1a
30 lines
707 B
C++
30 lines
707 B
C++
#include <csignal>
|
|
#include <sys/resource.h>
|
|
|
|
#include <QApplication>
|
|
#include <QDebug>
|
|
|
|
#include "common/util.h"
|
|
#include "selfdrive/ui/qt/util.h"
|
|
#include "selfdrive/ui/qt/maps/map_helpers.h"
|
|
#include "selfdrive/navd/map_renderer.h"
|
|
#include "system/hardware/hw.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
Hardware::config_cpu_rendering();
|
|
|
|
qInstallMessageHandler(swagLogMessageHandler);
|
|
setpriority(PRIO_PROCESS, 0, -20);
|
|
int ret = util::set_core_affinity({0, 1, 2, 3});
|
|
assert(ret == 0);
|
|
|
|
QApplication app(argc, argv);
|
|
std::signal(SIGINT, sigTermHandler);
|
|
std::signal(SIGTERM, sigTermHandler);
|
|
|
|
MapRenderer * m = new MapRenderer(get_mapbox_settings());
|
|
assert(m);
|
|
|
|
return app.exec();
|
|
}
|